-
Notifications
You must be signed in to change notification settings - Fork 13.4k
add dynamically-linked musl targets #82556
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
b1a3090
spec: add -dynmusl targets for dynamically linked musl binaries
kaniini 44078cd
platform support: document the new -dynmusl targets
kaniini 576e50f
dynmusl targets: drop need_rpath option (alpine-specific for now)
kaniini 479ad2e
platform support: remove checkmarks from the -dynmusl targets for now
kaniini ad60388
rename armv6-unknown-linux-dynmusleabihf to arm-unknown-linux-dynmusl…
kaniini ff1825a
add i686-unknown-linux-dynmusl target for void linux
kaniini 1e780f8
spec: dynmusl: drop redundant static_position_independent_executables…
kaniini c41347c
spec: dynmusl: unset CRT-related options
kaniini c340f45
rustbuild: only copy CRT objects for non-dynmusl case
kaniini 0f78528
spec: dynmusl: pre/post fallbacks are not Options, so provide an empt…
kaniini d1aed4b
spec: dynmusl: use crate::spec::crt_objects::new
kaniini 30b5037
spec: dynmusl: pacify rustfmt
kaniini e1ee500
platform support: normalize 'MUSL' and 'Musl' to 'musl libc'
kaniini File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
14 changes: 14 additions & 0 deletions
14
compiler/rustc_target/src/spec/aarch64_unknown_linux_dynmusl.rs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
use crate::spec::crt_objects::new; | ||
use crate::spec::Target; | ||
|
||
pub fn target() -> Target { | ||
let mut base = super::aarch64_unknown_linux_musl::target(); | ||
|
||
base.llvm_target = "aarch64-unknown-linux-musl".to_string(); | ||
base.options.crt_static_default = false; | ||
base.options.pre_link_objects_fallback = new(&[]); | ||
base.options.post_link_objects_fallback = new(&[]); | ||
base.options.crt_objects_fallback = None; | ||
|
||
base | ||
} |
14 changes: 14 additions & 0 deletions
14
compiler/rustc_target/src/spec/arm_unknown_linux_dynmusleabihf.rs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
use crate::spec::crt_objects::new; | ||
use crate::spec::Target; | ||
|
||
pub fn target() -> Target { | ||
let mut base = super::arm_unknown_linux_musleabihf::target(); | ||
|
||
base.llvm_target = "armv6-unknown-linux-musleabihf".to_string(); | ||
base.options.crt_static_default = false; | ||
base.options.pre_link_objects_fallback = new(&[]); | ||
base.options.post_link_objects_fallback = new(&[]); | ||
base.options.crt_objects_fallback = None; | ||
|
||
base | ||
} |
14 changes: 14 additions & 0 deletions
14
compiler/rustc_target/src/spec/armv7_unknown_linux_dynmusleabihf.rs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
use crate::spec::crt_objects::new; | ||
use crate::spec::Target; | ||
|
||
pub fn target() -> Target { | ||
let mut base = super::armv7_unknown_linux_musleabihf::target(); | ||
|
||
base.llvm_target = "armv7-unknown-linux-musleabihf".to_string(); | ||
base.options.crt_static_default = false; | ||
base.options.pre_link_objects_fallback = new(&[]); | ||
base.options.post_link_objects_fallback = new(&[]); | ||
base.options.crt_objects_fallback = None; | ||
|
||
base | ||
} |
14 changes: 14 additions & 0 deletions
14
compiler/rustc_target/src/spec/i586_unknown_linux_dynmusl.rs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
use crate::spec::crt_objects::new; | ||
use crate::spec::Target; | ||
|
||
pub fn target() -> Target { | ||
let mut base = super::i586_unknown_linux_musl::target(); | ||
|
||
base.llvm_target = "i586-unknown-linux-musl".to_string(); | ||
base.options.crt_static_default = false; | ||
base.options.pre_link_objects_fallback = new(&[]); | ||
base.options.post_link_objects_fallback = new(&[]); | ||
base.options.crt_objects_fallback = None; | ||
|
||
base | ||
} |
14 changes: 14 additions & 0 deletions
14
compiler/rustc_target/src/spec/i686_unknown_linux_dynmusl.rs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
use crate::spec::crt_objects::new; | ||
use crate::spec::Target; | ||
|
||
pub fn target() -> Target { | ||
let mut base = super::i686_unknown_linux_musl::target(); | ||
|
||
base.llvm_target = "i686-unknown-linux-musl".to_string(); | ||
base.options.crt_static_default = false; | ||
base.options.pre_link_objects_fallback = new(&[]); | ||
base.options.post_link_objects_fallback = new(&[]); | ||
base.options.crt_objects_fallback = None; | ||
|
||
base | ||
} |
14 changes: 14 additions & 0 deletions
14
compiler/rustc_target/src/spec/mips64_unknown_linux_dynmuslabi64.rs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
use crate::spec::crt_objects::new; | ||
use crate::spec::Target; | ||
|
||
pub fn target() -> Target { | ||
let mut base = super::mips64_unknown_linux_muslabi64::target(); | ||
|
||
base.llvm_target = "mips64-unknown-linux-musl".to_string(); | ||
base.options.crt_static_default = false; | ||
base.options.pre_link_objects_fallback = new(&[]); | ||
base.options.post_link_objects_fallback = new(&[]); | ||
base.options.crt_objects_fallback = None; | ||
|
||
base | ||
} |
14 changes: 14 additions & 0 deletions
14
compiler/rustc_target/src/spec/mips64el_unknown_linux_dynmuslabi64.rs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
use crate::spec::crt_objects::new; | ||
use crate::spec::Target; | ||
|
||
pub fn target() -> Target { | ||
let mut base = super::mips64el_unknown_linux_muslabi64::target(); | ||
|
||
base.llvm_target = "mips64el-unknown-linux-musl".to_string(); | ||
base.options.crt_static_default = false; | ||
base.options.pre_link_objects_fallback = new(&[]); | ||
base.options.post_link_objects_fallback = new(&[]); | ||
base.options.crt_objects_fallback = None; | ||
|
||
base | ||
} |
14 changes: 14 additions & 0 deletions
14
compiler/rustc_target/src/spec/mips_unknown_linux_dynmusl.rs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
use crate::spec::crt_objects::new; | ||
use crate::spec::Target; | ||
|
||
pub fn target() -> Target { | ||
let mut base = super::mips_unknown_linux_musl::target(); | ||
|
||
base.llvm_target = "mips-unknown-linux-musl".to_string(); | ||
base.options.crt_static_default = false; | ||
base.options.pre_link_objects_fallback = new(&[]); | ||
base.options.post_link_objects_fallback = new(&[]); | ||
base.options.crt_objects_fallback = None; | ||
|
||
base | ||
} |
14 changes: 14 additions & 0 deletions
14
compiler/rustc_target/src/spec/mipsel_unknown_linux_dynmusl.rs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
use crate::spec::crt_objects::new; | ||
use crate::spec::Target; | ||
|
||
pub fn target() -> Target { | ||
let mut base = super::mipsel_unknown_linux_musl::target(); | ||
|
||
base.llvm_target = "mipsel-unknown-linux-musl".to_string(); | ||
base.options.crt_static_default = false; | ||
base.options.pre_link_objects_fallback = new(&[]); | ||
base.options.post_link_objects_fallback = new(&[]); | ||
base.options.crt_objects_fallback = None; | ||
|
||
base | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
compiler/rustc_target/src/spec/powerpc64_unknown_linux_dynmusl.rs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
use crate::spec::crt_objects::new; | ||
use crate::spec::Target; | ||
|
||
pub fn target() -> Target { | ||
let mut base = super::powerpc64_unknown_linux_musl::target(); | ||
|
||
base.llvm_target = "powerpc64-unknown-linux-musl".to_string(); | ||
base.options.crt_static_default = false; | ||
base.options.pre_link_objects_fallback = new(&[]); | ||
base.options.post_link_objects_fallback = new(&[]); | ||
base.options.crt_objects_fallback = None; | ||
|
||
base | ||
} |
14 changes: 14 additions & 0 deletions
14
compiler/rustc_target/src/spec/powerpc64le_unknown_linux_dynmusl.rs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
use crate::spec::crt_objects::new; | ||
use crate::spec::Target; | ||
|
||
pub fn target() -> Target { | ||
let mut base = super::powerpc64le_unknown_linux_musl::target(); | ||
|
||
base.llvm_target = "powerpc64le-unknown-linux-musl".to_string(); | ||
base.options.crt_static_default = false; | ||
base.options.pre_link_objects_fallback = new(&[]); | ||
base.options.post_link_objects_fallback = new(&[]); | ||
base.options.crt_objects_fallback = None; | ||
|
||
base | ||
} |
14 changes: 14 additions & 0 deletions
14
compiler/rustc_target/src/spec/powerpc_unknown_linux_dynmusl.rs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
use crate::spec::crt_objects::new; | ||
use crate::spec::Target; | ||
|
||
pub fn target() -> Target { | ||
let mut base = super::powerpc_unknown_linux_musl::target(); | ||
|
||
base.llvm_target = "powerpc-unknown-linux-musl".to_string(); | ||
base.options.crt_static_default = false; | ||
base.options.pre_link_objects_fallback = new(&[]); | ||
base.options.post_link_objects_fallback = new(&[]); | ||
base.options.crt_objects_fallback = None; | ||
|
||
base | ||
} |
14 changes: 14 additions & 0 deletions
14
compiler/rustc_target/src/spec/s390x_unknown_linux_dynmusl.rs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
use crate::spec::crt_objects::new; | ||
use crate::spec::Target; | ||
|
||
pub fn target() -> Target { | ||
let mut base = super::s390x_unknown_linux_musl::target(); | ||
|
||
base.llvm_target = "s390x-unknown-linux-musl".to_string(); | ||
base.options.crt_static_default = false; | ||
base.options.pre_link_objects_fallback = new(&[]); | ||
base.options.post_link_objects_fallback = new(&[]); | ||
base.options.crt_objects_fallback = None; | ||
|
||
base | ||
} |
14 changes: 14 additions & 0 deletions
14
compiler/rustc_target/src/spec/x86_64_unknown_linux_dynmusl.rs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
use crate::spec::crt_objects::new; | ||
use crate::spec::Target; | ||
|
||
pub fn target() -> Target { | ||
let mut base = super::x86_64_unknown_linux_musl::target(); | ||
|
||
base.llvm_target = "x86_64-unknown-linux-musl".to_string(); | ||
base.options.crt_static_default = false; | ||
base.options.pre_link_objects_fallback = new(&[]); | ||
base.options.post_link_objects_fallback = new(&[]); | ||
base.options.crt_objects_fallback = None; | ||
|
||
base | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.