Support packages which need to explicitly refer to dpcpp by name (#27168)

* Hack to support packages which need to explicitly refer to dpcpp by name
* cc script needs to know about dpcpp
This commit is contained in:
Peter Scheibel
2021-12-02 15:49:20 -08:00
committed by GitHub
parent 693a15ea00
commit edb971a10e
3 changed files with 31 additions and 1 deletions

2
lib/spack/env/cc vendored
View File

@@ -248,7 +248,7 @@ case "$command" in
lang_flags=C
debug_flags="-g"
;;
c++|CC|g++|clang++|armclang++|icpc|icpx|pgc++|nvc++|xlc++|xlc++_r|FCC)
c++|CC|g++|clang++|armclang++|icpc|icpx|dpcpp|pgc++|nvc++|xlc++|xlc++_r|FCC)
command="$SPACK_CXX"
language="C++"
comp="CXX"

1
lib/spack/env/oneapi/dpcpp vendored Symbolic link
View File

@@ -0,0 +1 @@
../cc