[PATCH] D13692: Silence warning for unrecognised "-std=c99" warning on MSVC
angelsl via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 15 01:51:38 PDT 2015
angelsl updated this revision to Diff 37455.
angelsl marked an inline comment as done.
http://reviews.llvm.org/D13692
Files:
lib/builtins/CMakeLists.txt
Index: lib/builtins/CMakeLists.txt
===================================================================
--- lib/builtins/CMakeLists.txt
+++ lib/builtins/CMakeLists.txt
@@ -361,11 +361,14 @@
endif ()
endforeach ()
+ # MSVC doesn't take this argument, silence the warning
+ append_string_if((NOT MSVC) -std=c99 _cflags)
+
add_compiler_rt_runtime(clang_rt.builtins
STATIC
ARCHS ${arch}
SOURCES ${${arch}_SOURCES}
- CFLAGS "-std=c99"
+ CFLAGS ${_cflags}
PARENT_TARGET builtins)
endif ()
endforeach ()
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D13692.37455.patch
Type: text/x-patch
Size: 721 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151015/4559436a/attachment.bin>
More information about the llvm-commits
mailing list