From cf63c0d2d87bece4e59a039e39071026e4b57547 Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Wed, 8 Jan 2014 11:44:42 +0000 Subject: [PATCH] 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 --- clang/tools/c-index-test/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clang/tools/c-index-test/CMakeLists.txt b/clang/tools/c-index-test/CMakeLists.txt index 736065674f68..113172ad157c 100644 --- a/clang/tools/c-index-test/CMakeLists.txt +++ b/clang/tools/c-index-test/CMakeLists.txt @@ -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()