summary refs log tree commit diff
path: root/src/librustc_codegen_ssa
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2018-11-22 10:37:53 +0100
committerGitHub <noreply@github.com>2018-11-22 10:37:53 +0100
commitb473157293e9b40e03c276df3a04aeeaa0ad86c7 (patch)
tree54cee0b55938188d781f27ffa658dc07a7fba72f /src/librustc_codegen_ssa
parent1646fc907e474b12a1887c7d684fde25c9c9a3f1 (diff)
parent9e2e57511f13569c8e9de910c04540ad1b93a321 (diff)
downloadrust-b473157293e9b40e03c276df3a04aeeaa0ad86c7.tar.gz
rust-b473157293e9b40e03c276df3a04aeeaa0ad86c7.zip
Rollup merge of #56067 - jethrogb:jb/sgx-target-spec, r=alexcrichton
Add SGX target to rustc

This adds the `x86_64-fortanix-unknown-sgx` target specification to the Rust compiler. See #56066 for more details about this target.
Diffstat (limited to 'src/librustc_codegen_ssa')
-rw-r--r--src/librustc_codegen_ssa/back/linker.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/librustc_codegen_ssa/back/linker.rs b/src/librustc_codegen_ssa/back/linker.rs
index da9cfbb94d1..ec5ca580104 100644
--- a/src/librustc_codegen_ssa/back/linker.rs
+++ b/src/librustc_codegen_ssa/back/linker.rs
@@ -1050,6 +1050,10 @@ impl<'a> Linker for WasmLd<'a> {
 }
 
 fn exported_symbols(tcx: TyCtxt, crate_type: CrateType) -> Vec<String> {
+    if let Some(ref exports) = tcx.sess.target.target.options.override_export_symbols {
+        return exports.clone()
+    }
+
     let mut symbols = Vec::new();
 
     let export_threshold = symbol_export::crates_export_threshold(&[crate_type]);