Skip to content

Commit

Permalink
intel_compilers.py: use grep -v /include-fixed/ instead of GCCcore to…
Browse files Browse the repository at this point in the history
… filter out unwanted include path.
  • Loading branch information
akesandgren committed Jun 7, 2024
1 parent 2b207a2 commit ac25414
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion easybuild/easyblocks/i/intel_compilers.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,11 @@ def make_module_extra(self):
multiarch_out, ec = run_cmd("gcc -print-multiarch", simple=False)
multiarch_out = multiarch_out.strip()
if ec == 0 and multiarch_out:
multi_arch_inc_dir_cmd = "gcc -E -Wp,-v -xc /dev/null 2>&1 | grep %s$ | grep -v GCCcore" % multiarch_out
multi_arch_inc_dir_cmd = '|'.join([
"gcc -E -Wp,-v -xc /dev/null 2>&1",
"grep %s$" % multiarch_out,
"grep -v /include-fixed/",
])
multiarch_inc_dir, ec = run_cmd(multi_arch_inc_dir_cmd)
if ec == 0 and multiarch_inc_dir:
multiarch_inc_dir = multiarch_inc_dir.strip()
Expand Down

0 comments on commit ac25414

Please sign in to comment.