diff options
| author | Ralf Jung <post@ralfj.de> | 2020-06-19 08:56:12 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-06-19 08:56:12 +0200 |
| commit | 8d79ebd09b15ace5db433d3151961fba203ac314 (patch) | |
| tree | 1be9b44417ab69889e58bc80e2129767e9d75318 /src/rustllvm/PassWrapper.cpp | |
| parent | 3b4bec24ab5ca14ba238b7921321a493d63dcd44 (diff) | |
| parent | caffb28ece818ce87f1c7573992cae4210544015 (diff) | |
| download | rust-8d79ebd09b15ace5db433d3151961fba203ac314.tar.gz rust-8d79ebd09b15ace5db433d3151961fba203ac314.zip | |
Rollup merge of #73346 - aszenz:patch-1, r=cuviper
Add rust specific features to print target features Fixes #71583 `crt-static` is a rust specific target feature that's absent from llvm feature table, adding it there so that it shows under `rustc --print target-features`. Probably the most native implementation I could think of, would love to get feedback.
Diffstat (limited to 'src/rustllvm/PassWrapper.cpp')
| -rw-r--r-- | src/rustllvm/PassWrapper.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/rustllvm/PassWrapper.cpp b/src/rustllvm/PassWrapper.cpp index 3d252fe70af..323bd26c698 100644 --- a/src/rustllvm/PassWrapper.cpp +++ b/src/rustllvm/PassWrapper.cpp @@ -424,6 +424,12 @@ extern "C" void LLVMRustPrintTargetFeatures(LLVMTargetMachineRef TM) { printf("Available features for this target:\n"); for (auto &Feature : FeatTable) printf(" %-*s - %s.\n", MaxFeatLen, Feature.Key, Feature.Desc); + printf("\nRust-specific features:\n"); + printf(" %-*s - %s.\n", + MaxFeatLen, + "crt-static", + "Enables libraries with C Run-time Libraries(CRT) to be statically linked" + ); printf("\n"); printf("Use +feature to enable a feature, or -feature to disable it.\n" |
