summaryrefslogtreecommitdiff
path: root/tools/llvm-c-test
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2014-01-08 11:48:19 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2014-01-08 11:48:19 +0000
commit5de64fcb5e870fd12938854c058e40273a89dcd0 (patch)
tree2b5c9382a82734de1033041137ad9199961395b8 /tools/llvm-c-test
parentb1adf0890a1c19b2fd32a525c7c99e9db6da493f (diff)
downloadllvm-5de64fcb5e870fd12938854c058e40273a89dcd0.tar.gz
llvm-5de64fcb5e870fd12938854c058e40273a89dcd0.tar.bz2
llvm-5de64fcb5e870fd12938854c058e40273a89dcd0.tar.xz
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@198749 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvm-c-test')
-rw-r--r--tools/llvm-c-test/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/llvm-c-test/CMakeLists.txt b/tools/llvm-c-test/CMakeLists.txt
index 13a072ae33..34fea3d69c 100644
--- a/tools/llvm-c-test/CMakeLists.txt
+++ b/tools/llvm-c-test/CMakeLists.txt
@@ -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