about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
diff options
context:
space:
mode:
authorkit <kit@hastur.io>2021-11-09 10:36:47 +1100
committerkit <kit@hastur.io>2021-11-14 18:49:17 +1100
commit32ddd0206c9bd1956f7629c8c76191369f19023f (patch)
treefd07c4f0d8e8bf3f4097dd414404b43ff3b376d8 /compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
parent9bbc9cb597a37385f423c49e0bbf8ddafb128bbf (diff)
downloadrust-32ddd0206c9bd1956f7629c8c76191369f19023f.tar.gz
rust-32ddd0206c9bd1956f7629c8c76191369f19023f.zip
Refactor linker argument generation
This commit refactors linker argument generation to leverage a helper
function that abstracts away details governing how these arguments are
transformed and provided to the linker.

This fixes the misuse of the `-exported_symbols_list` when an ld-like
linker is used rather than a compiler. A compiler would expect
`-Wl,-exported_symbols_list,path` but ld would expect
`-exported_symbols_list` and `path` as two seperate arguments. Prior
to this change, an ld-like linker was given
`-exported_symbols_list,path`.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp')
0 files changed, 0 insertions, 0 deletions