Hip wrapper - #20
Conversation
|
Question: should cxxflags attribute from compiler definitions (in packages.yaml) be added when detected language is HIP? or should there be a separate Also, note that if it were processed like |
|
Did you check what CMake does? They implemented it twice, so presumably the second time they learned from mistakes from the past. See https://cmake.org/cmake/help/latest/variable/CMAKE_LANG_FLAGS.html#variable:CMAKE_%3CLANG%3E_FLAGS and various other pages, or sources. Edit: I did that:
That makes sense cause it's a different language. This is the case for ~5 years, so I would say let's do |
… not break without that change)
|
Commit ed41d0c depends on spack/spack#52826. This PR can be merged first ( |
|
You should add tests. |
| ;; | ||
| hip|spackhip) | ||
| command="$SPACK_HIPCXX" | ||
| vdep="spack-hip" |
There was a problem hiding this comment.
| vdep="spack-hip" | |
| vdep="hip-lang" |
| case "$arg" in | ||
| -x|--language) | ||
| _lang="$1" | ||
| shift ;; |
There was a problem hiding this comment.
This breaks ld ... -x on dash where you can't shift an empty argument list
$ man ld
...
-x
--discard-all
Delete all local symbols.
Maybe run it only when wrapping a compiler?
Used by spack/spack-packages#4411
Pipelines there fully passed with latest commit (d6cc6b2)
2b8ef4e (additional commit after that is for cleanup)