limit optimization fix to Loongson3

This commit is contained in:
Martin Kroeker 2024-04-29 23:09:21 +02:00 committed by GitHub
parent 3cdced0bf1
commit 041137b9dc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 0 deletions

View File

@ -1,7 +1,9 @@
TOPDIR = ..
include ../Makefile.system
ifeq ($(F_COMPILER),GFORTRAN)
ifneq (, $(filter $(CORE),LOONGSON3R3 LOONGSON3R4))
override FFLAGS = $(filter_out(-O2 -O3,$(FFLAGS)) -O0
endif
override FFLAGS += -fno-tree-vectorize
endif