diff options
| author | Michael Goulet <michael@errs.io> | 2023-11-27 19:06:47 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-11-27 19:06:47 -0500 |
| commit | 4936b3abdd77bd490703ab9812efda5401d5739f (patch) | |
| tree | 2223701757c3423f5ee3e8a720118bd2edea4588 /compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp | |
| parent | 7aa513b8617a17b2d4ab42419825fe40db9a20bb (diff) | |
| parent | 7a88458363400cd9c2b827c2a3e28f5ba20392d5 (diff) | |
| download | rust-4936b3abdd77bd490703ab9812efda5401d5739f.tar.gz rust-4936b3abdd77bd490703ab9812efda5401d5739f.zip | |
Rollup merge of #118202 - azhogin:azhogin/link_args_wrapping, r=petrochenkov
Added linker_arg(s) Linker trait methods for link-arg to be prefixed "-Wl," for cc-like linker args and not verbatim https://github.com/rust-lang/rust/issues/99427#issuecomment-1234443468 > here's one possible improvement to -l link-arg making it more portable between linkers and useful - befriending it with the verbatim modifier (https://github.com/rust-lang/rust/issues/99425). > > -l link-arg:-verbatim=-foo would add -Wl,-foo (or equivalent) when C compiler is used as a linker, and just -foo when bare linker is used. > -l link-arg:+verbatim=-bar on the other hand would always pass just -bar.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
