Fix elpa flags (missing optimization) (#41252)

Setting CFLAGS/FCFLAGS overrides the default optimization flags.

This commit brings them back.
This commit is contained in:
Raffaele Solcà 2023-11-28 11:31:30 +01:00 committed by GitHub
parent f84557a81b
commit f037ef7451
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -132,16 +132,7 @@ def configure_args(self):
options.append("--enable-generic")
if self.compiler.name == "gcc":
gcc_options = []
gfortran_options = ["-ffree-line-length-none"]
space_separator = " "
options.extend(
[
"CFLAGS=" + space_separator.join(gcc_options),
"FCFLAGS=" + space_separator.join(gfortran_options),
]
)
options.extend(["CFLAGS=-O3", "FCFLAGS=-O3 -ffree-line-length-none"])
if "%aocc" in spec:
options.extend(["FCFLAGS=-O3", "CFLAGS=-O3"])