[flang-commits] [flang] 9017b9c - [flang] Turn off FLANG_ENABLE_WERROR by default
Isuru Fernando via flang-commits
flang-commits at lists.llvm.org
Tue Jul 14 10:18:04 PDT 2020
Author: Isuru Fernando
Date: 2020-07-14T12:17:51-05:00
New Revision: 9017b9ce1a14b578fc5162897b49c440b3d4fa4c
URL: https://github.com/llvm/llvm-project/commit/9017b9ce1a14b578fc5162897b49c440b3d4fa4c
DIFF: https://github.com/llvm/llvm-project/commit/9017b9ce1a14b578fc5162897b49c440b3d4fa4c.diff
LOG: [flang] Turn off FLANG_ENABLE_WERROR by default
Summary: This is a follow up to https://reviews.llvm.org/D78306
Reviewers: DavidTruby, sscalpone, jdoerfert
Reviewed By: DavidTruby
Subscribers: tskeith, Meinersbur, ChinouneMehdi, richard.barton.arm, mehdi_amini, mgorny, llvm-commits
Tags: #llvm, #flang
Differential Revision: https://reviews.llvm.org/D81695
Added:
Modified:
flang/CMakeLists.txt
Removed:
################################################################################
diff --git a/flang/CMakeLists.txt b/flang/CMakeLists.txt
index feb9544209bf..13e675f1096e 100644
--- a/flang/CMakeLists.txt
+++ b/flang/CMakeLists.txt
@@ -37,13 +37,7 @@ endif()
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules")
include(AddFlang)
-if (MSVC)
- set(_FLANG_ENABLE_WERROR_DEFAULT OFF)
-else ()
- set(_FLANG_ENABLE_WERROR_DEFAULT ON)
-endif()
-option(FLANG_ENABLE_WERROR "Fail and stop building flang if a warning is triggered."
- "${_FLANG_ENABLE_WERROR_DEFAULT}")
+option(FLANG_ENABLE_WERROR "Fail and stop building flang if a warning is triggered." OFF)
# Check for a standalone build and configure as appropriate from
# there.
@@ -305,9 +299,6 @@ if (FLANG_ENABLE_WERROR)
append("-Werror" CMAKE_C_FLAGS CMAKE_CXX_FLAGS)
append("-Wno-error" CMAKE_REQUIRED_FLAGS)
endif( LLVM_COMPILER_IS_GCC_COMPATIBLE )
- if (NOT LLVM_ENABLE_WERROR)
- message(WARNING "FLANG_ENABLE_WERROR setting is
diff erent from LLVM_ENABLE_WERROR.")
- endif()
endif()
# Builtin check_cxx_compiler_flag doesn't seem to work correctly
More information about the flang-commits
mailing list