Skip to content
Snippets Groups Projects
Commit 2fa6adad authored by Martin Lang's avatar Martin Lang
Browse files

Keep system include dir for intel classic

parent 76916a13
No related branches found
No related tags found
No related merge requests found
Pipeline #546066 failed
...@@ -630,26 +630,15 @@ def install_toolchain_compiler(spack_environment: str) -> dict[str, dict[str, st ...@@ -630,26 +630,15 @@ def install_toolchain_compiler(spack_environment: str) -> dict[str, dict[str, st
spack(f"compiler find --scope site {compiler_path}").stdout.strip() spack(f"compiler find --scope site {compiler_path}").stdout.strip()
) )
if False: # len(compilers) == 2: if compilers["defalt"]["name"].startswith("intel"):
gcc = compilers["fallback"] gcc = compilers["fallback"]
intel = compilers["default"] intel = compilers["default"]
arch_tag = platform.machine() arch_tag = platform.machine()
gcc_root = spack(f"location -i {gcc['package']}").stdout.strip() cflags = f" -idirafter/usr/include/{arch_tag}-linux-gnu" " -diag-disable=10441"
cflags = (
f" -gcc-name={gcc_root}/bin/gcc"
f" -idirafter/usr/include/{arch_tag}-linux-gnu"
" -diag-disable=10441"
)
cxxflags = ( cxxflags = (
f" -gxx-name={gcc_root}/bin/g++" f" -idirafter/usr/include/{arch_tag}-linux-gnu" " -diag-disable=10441"
f" -idirafter/usr/include/{arch_tag}-linux-gnu"
" -diag-disable=10441"
)
fflags = (
f" -gcc-name={gcc_root}/bin/gcc"
f" -idirafter/usr/include/{arch_tag}-linux-gnu"
" -diag-disable=10441"
) )
fflags = f" -idirafter/usr/include/{arch_tag}-linux-gnu" " -diag-disable=10441"
intel_spec = intel["name"].replace("@", "@=") intel_spec = intel["name"].replace("@", "@=")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment