Fix elpa flags (missing optimization) (#41252)
Setting CFLAGS/FCFLAGS overrides the default optimization flags. This commit brings them back.
This commit is contained in:
parent
f84557a81b
commit
f037ef7451
@ -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"])
|
||||
|
Loading…
Reference in New Issue
Block a user