diff options
| author | Rémy Rakic <remy.rakic+github@gmail.com> | 2022-05-16 03:40:52 +0200 |
|---|---|---|
| committer | Rémy Rakic <remy.rakic+github@gmail.com> | 2022-07-11 15:43:28 +0200 |
| commit | 9dd6f5246cf59c1d04bf6f23f86998ae08689168 (patch) | |
| tree | b5b9107a845637a1871fd0ffd0f20d9e2dd3ebe1 /compiler/rustc_parse/src/parser/expr.rs | |
| parent | 94f8ee1f7c27b749f84ce9dbea0762975aaa7770 (diff) | |
| download | rust-9dd6f5246cf59c1d04bf6f23f86998ae08689168.tar.gz rust-9dd6f5246cf59c1d04bf6f23f86998ae08689168.zip | |
extend bootstrap for PGO on windows
When building LLVM/LLD as part of a build that asks LLVM to generate profiles, e.g. when doing PGO, cmake or clang-cl don't automatically link clang's profiler runtime in, causing undefined reference errors at link-time. We do that manually, by adding clang's resource library folder to the library search path: - for LLVM itself, by extending the linker args that `rustc_llvm`'s build script uses, to avoid the linker errors when linking `rustc_driver`. - for LLD, by extending cmake's linker flags during the LLD build step.
Diffstat (limited to 'compiler/rustc_parse/src/parser/expr.rs')
0 files changed, 0 insertions, 0 deletions
