Skip to content
This repository has been archived by the owner on Apr 23, 2020. It is now read-only.

Commit

Permalink
Use -std=gnu89 in tools/c-index-test/CMakeLists.txt
Browse files Browse the repository at this point in the history
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
  • Loading branch information
espindola committed Jan 8, 2014
1 parent 3a47e45 commit a82a9c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/c-index-test/CMakeLists.txt
Expand Up @@ -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()

Expand Down

0 comments on commit a82a9c0

Please sign in to comment.