From 40b923f858d84cea5f4113e930b47546e86fe9ca Mon Sep 17 00:00:00 2001 From: Martin Kroeker Date: Thu, 21 Mar 2024 10:23:27 +0100 Subject: [PATCH] Filter out FFLAGS that flang-new from LLVM18 no longer supports --- Makefile.system | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile.system b/Makefile.system index 2ea407349a..f89cc8bdfa 100644 --- a/Makefile.system +++ b/Makefile.system @@ -1670,6 +1670,10 @@ ifeq ($(F_COMPILER),CRAY) LAPACK_FFLAGS := $(filter-out -msse3 -mssse3 -msse4.1 -mavx -mavx2 -mskylake-avx512 ,$(FFLAGS)) override FFLAGS := $(filter-out -msse3 -mssse3 -msse4.1 -mavx -mavx2 -mskylake-avx512 ,$(FFLAGS)) endif +ifeq ($(F_COMPILER),FLANGNEW) +LAPACK_FFLAGS := $(filter-out -m32 -m64 -msse3 -mssse3 -msse4.1 -mavx -mavx2 -mskylake-avx512 ,$(FFLAGS)) +override FFLAGS := $(filter-out -m32 -m64 -msse3 -mssse3 -msse4.1 -mavx -mavx2 -mskylake-avx512 ,$(FFLAGS)) +endif LAPACK_CFLAGS = $(CFLAGS) LAPACK_CFLAGS += -DHAVE_LAPACK_CONFIG_H