llvm-project
c9841326 - [Driver][HIP][HIPSTDPAR][Windows] Link the HIP RT even when `-nostdlib` (#154630)

Commit
42 days ago
[Driver][HIP][HIPSTDPAR][Windows] Link the HIP RT even when `-nostdlib` (#154630) In Windows, on a MSVC environment (e.g. when linking against the UCRT), `-nostdlib` is used (for example, by CMake) to prevent linking in non-existent `glibc`. However, an unintended side-effect is that we end up never linking in the HIP RT in these circumstances, even when `--hip-link` is explicitly specified. This breaks `hipstdpar`, where we implicitly link in the HIP RT when `--hipstdpar` is passed as a link flag. To fix this, we relax the restriction on linking the HIP RT, for known MSVC environments.
Author
Parents
Loading