diff options
| author | bors <bors@rust-lang.org> | 2018-07-06 20:05:23 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2018-07-06 20:05:23 +0000 |
| commit | e06c875442e91cc2c597135d1e807a69e73eee26 (patch) | |
| tree | b68a271b1cd8f662d39b23e19c296b208c27335f /src/librustc_target/spec | |
| parent | 3ea16c3493d1ed7bb085053d4362907ee8d72366 (diff) | |
| parent | bbe45ce584436ea23aeb9aec5871f7813f8c7476 (diff) | |
| download | rust-e06c875442e91cc2c597135d1e807a69e73eee26.tar.gz rust-e06c875442e91cc2c597135d1e807a69e73eee26.zip | |
Auto merge of #51757 - nielx:fix/haiku-fixes, r=nagisa
Haiku: several smaller fixes to build and run rust on Haiku This PR combines three small patches that help Rust build and run on the Haiku platform. These patches do not intend to impact other platforms.
Diffstat (limited to 'src/librustc_target/spec')
| -rw-r--r-- | src/librustc_target/spec/x86_64_unknown_haiku.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/librustc_target/spec/x86_64_unknown_haiku.rs b/src/librustc_target/spec/x86_64_unknown_haiku.rs index 1e78461861a..68fa58b9220 100644 --- a/src/librustc_target/spec/x86_64_unknown_haiku.rs +++ b/src/librustc_target/spec/x86_64_unknown_haiku.rs @@ -16,6 +16,8 @@ pub fn target() -> TargetResult { base.max_atomic_width = Some(64); base.pre_link_args.insert(LinkerFlavor::Gcc, vec!["-m64".to_string()]); base.stack_probes = true; + // This option is required to build executables on Haiku x86_64 + base.position_independent_executables = true; Ok(Target { llvm_target: "x86_64-unknown-haiku".to_string(), |
