[flang-commits] [PATCH] D85355: [flang][msvc] Do not use gcc/clang command line options for msvc.
Michael Kruse via Phabricator via flang-commits
flang-commits at lists.llvm.org
Thu Aug 6 13:47:02 PDT 2020
This revision was automatically updated to reflect the committed changes.
Closed by commit rGf81bae9ff42f: [flang][msvc] Do not use gcc/clang command line options for msvc. (authored by Meinersbur).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D85355/new/
https://reviews.llvm.org/D85355
Files:
flang/lib/Lower/CMakeLists.txt
flang/lib/Optimizer/CMakeLists.txt
Index: flang/lib/Optimizer/CMakeLists.txt
===================================================================
--- flang/lib/Optimizer/CMakeLists.txt
+++ flang/lib/Optimizer/CMakeLists.txt
@@ -1,4 +1,6 @@
-set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-unused-parameter -Wno-error")
+if (LLVM_COMPILER_IS_GCC_COMPATIBLE)
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-unused-parameter -Wno-error")
+endif ()
get_property(dialect_libs GLOBAL PROPERTY MLIR_DIALECT_LIBS)
add_flang_library(FIROptimizer
Index: flang/lib/Lower/CMakeLists.txt
===================================================================
--- flang/lib/Lower/CMakeLists.txt
+++ flang/lib/Lower/CMakeLists.txt
@@ -1,4 +1,6 @@
-set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-error -Wno-unused-parameter")
+if (LLVM_COMPILER_IS_GCC_COMPATIBLE)
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-error -Wno-unused-parameter")
+endif ()
get_property(dialect_libs GLOBAL PROPERTY MLIR_DIALECT_LIBS)
add_flang_library(FortranLower
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D85355.283727.patch
Type: text/x-patch
Size: 992 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20200806/d06142be/attachment.bin>
More information about the flang-commits
mailing list