diff options
| author | asrar <aszenz@gmail.com> | 2020-06-14 21:44:11 +0530 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-06-14 21:44:11 +0530 |
| commit | e32db8458457849f5d894ffa4a1672b9071708f0 (patch) | |
| tree | 52dc8ff4086dc037ac8929aefdc7be4da0ffe752 /src/rustllvm/PassWrapper.cpp | |
| parent | 4fb54ed484e2239a3e9eff3be17df00d2a162be3 (diff) | |
| download | rust-e32db8458457849f5d894ffa4a1672b9071708f0.tar.gz rust-e32db8458457849f5d894ffa4a1672b9071708f0.zip | |
Add rust features to print target features
`crt-static` is a rust specific target feature that's absent from llvm feature table, adding it there.
Diffstat (limited to 'src/rustllvm/PassWrapper.cpp')
| -rw-r--r-- | src/rustllvm/PassWrapper.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/rustllvm/PassWrapper.cpp b/src/rustllvm/PassWrapper.cpp index 3d252fe70af..7586dd91ab6 100644 --- a/src/rustllvm/PassWrapper.cpp +++ b/src/rustllvm/PassWrapper.cpp @@ -425,6 +425,9 @@ extern "C" void LLVMRustPrintTargetFeatures(LLVMTargetMachineRef TM) { for (auto &Feature : FeatTable) printf(" %-*s - %s.\n", MaxFeatLen, Feature.Key, Feature.Desc); printf("\n"); + // Rust specific target features + 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" "For example, rustc -C -target-cpu=mycpu -C " |
