about summary refs log tree commit diff
path: root/compiler/rustc_parse/src
diff options
context:
space:
mode:
authorRémy Rakic <remy.rakic+github@gmail.com>2022-05-16 03:40:52 +0200
committerRémy Rakic <remy.rakic+github@gmail.com>2022-07-11 15:43:28 +0200
commit9dd6f5246cf59c1d04bf6f23f86998ae08689168 (patch)
treeb5b9107a845637a1871fd0ffd0f20d9e2dd3ebe1 /compiler/rustc_parse/src
parent94f8ee1f7c27b749f84ce9dbea0762975aaa7770 (diff)
downloadrust-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')
0 files changed, 0 insertions, 0 deletions