From 3aeff21df799a6e41d4ba24b4155d98c694f8113 Mon Sep 17 00:00:00 2001 From: Christian Pfeiffer Date: Thu, 19 Oct 2017 17:28:10 +0200 Subject: 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. --- Modules/Compiler/Flang-Fortran.cmake | 2 -- 1 file changed, 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") -- cgit v0.12