compiler-wrapper: add hip support
This commit is contained in:
parent
adfb6ee6aa
commit
2519ad20da
@ -320,7 +320,7 @@ _command_from_flags() {
|
||||
|
||||
case "$_lang" in
|
||||
c) command=cc ;;
|
||||
c++|f77|f95) command="$_lang" ;;
|
||||
c++|f77|f95|hip) command="$_lang" ;;
|
||||
*) command="$command_from_argv0" ;; # drop unknown languages
|
||||
esac
|
||||
}
|
||||
@ -365,6 +365,14 @@ case "$command" in
|
||||
debug_flags="-g"
|
||||
vcheck_flags="${SPACK_ALWAYS_FFLAGS}"
|
||||
;;
|
||||
hip)
|
||||
command="$SPACK_HIPCXX"
|
||||
language="HIP"
|
||||
comp="HIPCXX"
|
||||
lang_flags=HIP
|
||||
debug_flags="-g"
|
||||
vcheck_flags="${SPACK_ALWAYS_HIPCXXFLAGS}"
|
||||
;;
|
||||
ld|ld.gold|ld.lld)
|
||||
mode=ld
|
||||
if [ -z "$SPACK_CC_RPATH_ARG" ]; then
|
||||
|
@ -43,7 +43,7 @@ class CompilerWrapper(Package):
|
||||
if sys.platform != "win32":
|
||||
version(
|
||||
"1.0",
|
||||
sha256="db44e5898aa9b8605e3cfe53a51649b4df504066f0f13562432f584fc88a5038",
|
||||
sha256="01db837305c8e181f142da3341c8438e0a7b4e03f0361df19d5784ab68b3c1f2",
|
||||
expand=False,
|
||||
)
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user