diff options
author | Kacper Kornet <kk562@cam.ac.uk> | 2024-04-14 00:34:58 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-13 19:34:58 -0400 |
commit | 2c22ae0576141798e3edfee9abf161fdd8cd98fb (patch) | |
tree | fb3dbbbce7514c8d2a174511d1c7b3fe3776c020 | |
parent | fc3fc946898c38fcd2a291e02a003b642725d86a (diff) | |
download | spack-2c22ae0576141798e3edfee9abf161fdd8cd98fb.tar.gz spack-2c22ae0576141798e3edfee9abf161fdd8cd98fb.tar.bz2 spack-2c22ae0576141798e3edfee9abf161fdd8cd98fb.tar.xz spack-2c22ae0576141798e3edfee9abf161fdd8cd98fb.zip |
intel-oneapi-compiler: Fix generation of config files (#43654)
Commit 330a9a7c9ac82e91f18a6cbcd9c067eeaa26d617 aimed at preventing
generation of .cfg files when a given compiler does not exist
in the particular release. However the check does not
contain the full paths so it always fails resulting in empty
.cfg files. This commit fixes it.
-rw-r--r-- | var/spack/repos/builtin/packages/intel-oneapi-compilers/package.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/intel-oneapi-compilers/package.py b/var/spack/repos/builtin/packages/intel-oneapi-compilers/package.py index bff6586460..cce9869e85 100644 --- a/var/spack/repos/builtin/packages/intel-oneapi-compilers/package.py +++ b/var/spack/repos/builtin/packages/intel-oneapi-compilers/package.py @@ -338,7 +338,7 @@ class IntelOneapiCompilers(IntelOneApiPackage): # Tolerate missing compilers. # Initially, we installed icx/ifx/icc/ifort into a single prefix. # Starting in 2024, there is no icc. 2023.2.3 does not have an ifx. - if os.path.exists(compiler): + if os.path.exists(path.join(compiler)): p = path.join(compiler + ".cfg") with open(p, "w") as f: f.write(" ".join(flags)) |