From 35c248f6f0d8b7fc010cb429937df0dd17fa6fc4 Mon Sep 17 00:00:00 2001 From: Jethro Beekman Date: Mon, 15 Jul 2019 11:23:39 -0700 Subject: [PATCH] SGX target: don't pretend to be GNU/Linux to LLVM --- src/librustc_target/spec/x86_64_fortanix_unknown_sgx.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/librustc_target/spec/x86_64_fortanix_unknown_sgx.rs b/src/librustc_target/spec/x86_64_fortanix_unknown_sgx.rs index 46cf4cd8ae353..7c24c88f7aee0 100644 --- a/src/librustc_target/spec/x86_64_fortanix_unknown_sgx.rs +++ b/src/librustc_target/spec/x86_64_fortanix_unknown_sgx.rs @@ -65,7 +65,7 @@ pub fn target() -> Result { ..Default::default() }; Ok(Target { - llvm_target: "x86_64-unknown-linux-gnu".into(), + llvm_target: "x86_64-elf".into(), target_endian: "little".into(), target_pointer_width: "64".into(), target_c_int_width: "32".into(),