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.

llvm-svn: 198748
This commit is contained in:
Rafael Espindola 2014-01-08 11:44:42 +00:00
parent 120dd1afaf
commit cf63c0d2d8
1 changed files with 1 additions and 1 deletions

View File

@ -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()