Removed references to '(-march|-mtune|-mcpu)=native' (#12948)
Now that Spack injects microarchitecture specific optimizations for the selected target, packages should avoid adding flags that could step over those.
This commit is contained in:

committed by
GitHub

parent
78d051b534
commit
31e5318c24
@@ -65,13 +65,10 @@ def configure_args(self):
|
||||
# https://src.fedoraproject.org/cgit/rpms/elpa.git/
|
||||
# https://packages.qa.debian.org/e/elpa.html
|
||||
options = []
|
||||
# without -march=native there is configure error for 2017.05.02
|
||||
# Could not compile test program, try with --disable-sse, or
|
||||
# adjust the C compiler or CFLAGS
|
||||
if '+optflags' in self.spec:
|
||||
options.extend([
|
||||
'FCFLAGS=-O2 -march=native -ffree-line-length-none',
|
||||
'CFLAGS=-O2 -march=native'
|
||||
'FCFLAGS=-O2 -ffree-line-length-none',
|
||||
'CFLAGS=-O2'
|
||||
])
|
||||
if '+openmp' in self.spec:
|
||||
options.append('--enable-openmp')
|
||||
|
Reference in New Issue
Block a user