Commit ffd7b4d
[libhipcxx] Fix -x hip scope: use target_compile_options not CMAKE_CXX_FLAGS
CMAKE_CXX_FLAGS=-x hip gets passed to the linker step too, causing
amdclang++ to try to parse ELF object files as HIP source:
error: expected unqualified-id (reading ELF magic bytes)
Move -x hip to target_compile_options on the version_check target so
it only applies during compilation, not linking. Remove it from the
global cmake_opts passed to the sub-project configure step.
Co-Authored-By: Claude Sonnet 4 <noreply@anthropic.com>1 parent ea95111 commit ffd7b4d
2 files changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
29 | 28 | | |
30 | 29 | | |
31 | 30 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
| |||
0 commit comments