From f9da23e915b9c23f2279806738d1371aeb55d0cb Mon Sep 17 00:00:00 2001 From: Martin Kroeker Date: Thu, 21 Mar 2024 19:50:41 +0100 Subject: [PATCH] Filter out FFLAGS not supported by flang-new --- cmake/system.cmake | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cmake/system.cmake b/cmake/system.cmake index 95f34e9f82..4f067bc99a 100644 --- a/cmake/system.cmake +++ b/cmake/system.cmake @@ -616,8 +616,11 @@ if (${CMAKE_SYSTEM_NAME} STREQUAL "Windows") endforeach () endif () -if ("${F_COMPILER}" STREQUAL "NAG" OR "${F_COMPILER}" STREQUAL "CRAY") +if ("${F_COMPILER}" STREQUAL "NAG" OR "${F_COMPILER}" STREQUAL "CRAY" OR "${F_COMPILER}" STREQUAL "FLANGNEW") set(FILTER_FLAGS "-msse3;-mssse3;-msse4.1;-mavx;-mavx2,-mskylake-avx512") + if ("${F_COMPILER}" STREQUAL "FLANGNEW") + set(FILTER_FLAGS "${FILTER_FLAGS};-m32;-m64") + endif () foreach (FILTER_FLAG ${FILTER_FLAGS}) string(REPLACE ${FILTER_FLAG} "" LAPACK_FFLAGS ${LAPACK_FFLAGS}) string(REPLACE ${FILTER_FLAG} "" LAPACK_FPFLAGS ${LAPACK_FPFLAGS})