only filter compiler paths for binaries provided by the compiler (#7369)
This commit is contained in:
parent
ca336b60fa
commit
8b0552bc23
1 changed files with 9 additions and 4 deletions
|
@ -195,10 +195,15 @@ def _filter_compiler_wrappers_impl(self):
|
|||
|
||||
x = llnl.util.filesystem.FileFilter(*abs_files)
|
||||
|
||||
x.filter(os.environ['CC'], self.compiler.cc, **filter_kwargs)
|
||||
x.filter(os.environ['CXX'], self.compiler.cxx, **filter_kwargs)
|
||||
x.filter(os.environ['F77'], self.compiler.f77, **filter_kwargs)
|
||||
x.filter(os.environ['FC'], self.compiler.fc, **filter_kwargs)
|
||||
replacements = [
|
||||
('CC', self.compiler.cc),
|
||||
('CXX', self.compiler.cxx),
|
||||
('F77', self.compiler.f77),
|
||||
('FC', self.compiler.fc)
|
||||
]
|
||||
for env_var, compiler_path in replacements:
|
||||
if env_var in os.environ:
|
||||
x.filter(os.environ[env_var], compiler_path, **filter_kwargs)
|
||||
|
||||
# Remove this linking flag if present (it turns RPATH into RUNPATH)
|
||||
x.filter('-Wl,--enable-new-dtags', '', **filter_kwargs)
|
||||
|
|
Loading…
Reference in a new issue