[PATCH] D13692: Silence warning for unrecognised "-std=c99" warning on MSVC

angelsl via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 15 02:27:11 PDT 2015


angelsl updated this revision to Diff 37464.
angelsl added a comment.

CMake variable expansion @_@


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.37464.patch
Type: text/x-patch
Size: 721 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151015/3a32bf36/attachment.bin>


More information about the llvm-commits mailing list