r198748 - Use -std=gnu89 in tools/c-index-test/CMakeLists.txt

Rafael Espindola rafael.espindola at gmail.com
Wed Jan 8 03:44:42 PST 2014


Author: rafael
Date: Wed Jan  8 05:44:42 2014
New Revision: 198748

URL: http://llvm.org/viewvc/llvm-project?rev=198748&view=rev
Log:
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.

Modified:
    cfe/trunk/tools/c-index-test/CMakeLists.txt

Modified: cfe/trunk/tools/c-index-test/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/c-index-test/CMakeLists.txt?rev=198748&r1=198747&r2=198748&view=diff
==============================================================================
--- cfe/trunk/tools/c-index-test/CMakeLists.txt (original)
+++ cfe/trunk/tools/c-index-test/CMakeLists.txt Wed Jan  8 05:44:42 2014
@@ -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()
 





More information about the cfe-commits mailing list