[flang-commits] [flang] cf03bcf - [flang] Remove extra CMAKE_CXX_FLAGS in Lower and Optimizer
Tim Keith via flang-commits
flang-commits at lists.llvm.org
Fri Aug 7 10:22:10 PDT 2020
Author: Tim Keith
Date: 2020-08-07T10:21:54-07:00
New Revision: cf03bcf92922c483e1ecd4691263e01d14557c3e
URL: https://github.com/llvm/llvm-project/commit/cf03bcf92922c483e1ecd4691263e01d14557c3e
DIFF: https://github.com/llvm/llvm-project/commit/cf03bcf92922c483e1ecd4691263e01d14557c3e.diff
LOG: [flang] Remove extra CMAKE_CXX_FLAGS in Lower and Optimizer
`-Wno-error` and `-Wno-unused-parameter` appear to no longer be needed
for Lower and Optimizer.
Differential Revision: https://reviews.llvm.org/D85465
Added:
Modified:
flang/lib/Lower/CMakeLists.txt
flang/lib/Optimizer/CMakeLists.txt
Removed:
################################################################################
diff --git a/flang/lib/Lower/CMakeLists.txt b/flang/lib/Lower/CMakeLists.txt
index ed50b65be5cc..e104a8fd0d89 100644
--- a/flang/lib/Lower/CMakeLists.txt
+++ b/flang/lib/Lower/CMakeLists.txt
@@ -1,6 +1,3 @@
-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
diff --git a/flang/lib/Optimizer/CMakeLists.txt b/flang/lib/Optimizer/CMakeLists.txt
index 3dd1dc1ff6e5..9903f3a3d945 100644
--- a/flang/lib/Optimizer/CMakeLists.txt
+++ b/flang/lib/Optimizer/CMakeLists.txt
@@ -1,6 +1,3 @@
-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
More information about the flang-commits
mailing list