From: Rafael Espindola Date: Wed, 8 Jan 2014 11:44:42 +0000 (+0000) Subject: Use -std=gnu89 in tools/c-index-test/CMakeLists.txt X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a82a9c0cfcfbf30612f58d97a63e8698fe0dd088;p=clang Use -std=gnu89 in tools/c-index-test/CMakeLists.txt With the old use of -std=c89 off_t is not defined and the build fails. This seems to be another variation of http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40278. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@198748 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/tools/c-index-test/CMakeLists.txt b/tools/c-index-test/CMakeLists.txt index 736065674f..113172ad15 100644 --- a/tools/c-index-test/CMakeLists.txt +++ b/tools/c-index-test/CMakeLists.txt @@ -5,7 +5,7 @@ add_clang_executable(c-index-test if(NOT MSVC) set_property( SOURCE c-index-test.c - PROPERTY COMPILE_FLAGS "-std=c89" + PROPERTY COMPILE_FLAGS "-std=gnu89" ) endif()