[llvm] r198749 - Use -std=gnu99 in tools/llvm-c-test/CMakeLists.txt

Rafael Espindola rafael.espindola at gmail.com
Wed Jan 8 03:48:19 PST 2014


Author: rafael
Date: Wed Jan  8 05:48:19 2014
New Revision: 198749

URL: http://llvm.org/viewvc/llvm-project?rev=198749&view=rev
Log:
Use -std=gnu99 in tools/llvm-c-test/CMakeLists.txt

With a current mingw (gcc 4.8.1) it looks like we hit some variation of

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40278

The end result is that off_t is not defined and the build fails without this
patch.

Modified:
    llvm/trunk/tools/llvm-c-test/CMakeLists.txt

Modified: llvm/trunk/tools/llvm-c-test/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-c-test/CMakeLists.txt?rev=198749&r1=198748&r2=198749&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-c-test/CMakeLists.txt (original)
+++ llvm/trunk/tools/llvm-c-test/CMakeLists.txt Wed Jan  8 05:48:19 2014
@@ -8,7 +8,7 @@ set(LLVM_LINK_COMPONENTS
   )
 
 if (LLVM_COMPILER_IS_GCC_COMPATIBLE)
-  set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c99 -Wstrict-prototypes")
+  set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu99 -Wstrict-prototypes")
 endif ()
 
 add_llvm_tool(llvm-c-test





More information about the llvm-commits mailing list