summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorChristian Pfeiffer <cpfeiffer@live.de>2017-10-19 15:28:10 (GMT)
committerBrad King <brad.king@kitware.com>2017-10-19 17:04:50 (GMT)
commit3aeff21df799a6e41d4ba24b4155d98c694f8113 (patch)
tree9aae92a3cc712d01431be64f21c405b76ff766dc /Modules
parenta91eb5e41f486628910f189bf40403568af013c7 (diff)
downloadCMake-3aeff21df799a6e41d4ba24b4155d98c694f8113.zip
CMake-3aeff21df799a6e41d4ba24b4155d98c694f8113.tar.gz
CMake-3aeff21df799a6e41d4ba24b4155d98c694f8113.tar.bz2
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.
Diffstat (limited to 'Modules')
-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 f17dec7..a1051f4 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")