Commit fffa3c8
committed
[LLVM][CMake][MSVC] Wrap linker options for ICX with LLVM_BUILD_INSTRUMENTED
RFC: https://discourse.llvm.org/t/rfc-cmake-linker-flags-need-wl-equivalent-for-intel-c-icx-on-windows/82446
The Intel C++ Compiler (ICX) passes linker flags through the driver
unlike MSVC and clang-cl, and therefore needs them to be prefixed with
`/Qoption,link` (the equivalent of `-Wl,` for gcc on *nix).
Previous PRs did not catch this because I did not try building with
`LLVM_BUILD_INSTRUMENTED=ON`.
`CMAKE_CXX_LINKER_WRAPPER_FLAG` is empty for plain clang-cl
(icx on windows behaves as clang-cl), so this is NFC for clang-cl.
The approach I used to find these is documented as github gist here:
https://gist.github.com/Maetveis/00567488f0d6ff74095d91ed306fafc51 parent f68b0e3 commit fffa3c8
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1212 | 1212 | | |
1213 | 1213 | | |
1214 | 1214 | | |
1215 | | - | |
| 1215 | + | |
1216 | 1216 | | |
1217 | 1217 | | |
1218 | 1218 | | |
| |||
0 commit comments