summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Pfeiffer <cpfeiffer@live.de>2017-10-19 17:28:10 +0200
committerBrad King <brad.king@kitware.com>2017-10-19 13:04:50 -0400
commit3aeff21df799a6e41d4ba24b4155d98c694f8113 (patch)
tree9aae92a3cc712d01431be64f21c405b76ff766dc
parenta91eb5e41f486628910f189bf40403568af013c7 (diff)
downloadcmake-3aeff21df799a6e41d4ba24b4155d98c694f8113.tar.gz
Flang: Remove unsupported fbounds-check flag
The Flang compiler neither supports nor documents -fbounds-check leading to -Wunused-command-line-argument warnings with the default Debug flags.
-rw-r--r--Modules/Compiler/Flang-Fortran.cmake2
1 files changed, 0 insertions, 2 deletions
diff --git a/Modules/Compiler/Flang-Fortran.cmake b/Modules/Compiler/Flang-Fortran.cmake
index f17dec7d59..a1051f4890 100644
--- a/Modules/Compiler/Flang-Fortran.cmake
+++ b/Modules/Compiler/Flang-Fortran.cmake
@@ -7,6 +7,4 @@ set(CMAKE_Fortran_PREPROCESS_SOURCE
set(CMAKE_Fortran_FORMAT_FIXED_FLAG "-ffixed-form")
set(CMAKE_Fortran_FORMAT_FREE_FLAG "-ffree-form")
-string(APPEND CMAKE_Fortran_FLAGS_DEBUG_INIT " -fbounds-check")
-
set(CMAKE_Fortran_MODDIR_FLAG "-J")