mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 01:04:03 +00:00
Added support for i386-unknown-linux-gnu and i486-unknown-linux-gnu
Support for both can be useful when creating new firmware, boot loaders, or embedded operating systems.
This commit is contained in:
parent
db69136369
commit
a0b0aecda3
8
compiler/rustc_target/src/spec/i386_unknown_linux_gnu.rs
Normal file
8
compiler/rustc_target/src/spec/i386_unknown_linux_gnu.rs
Normal file
@ -0,0 +1,8 @@
|
||||
use crate::spec::Target;
|
||||
|
||||
pub fn target() -> Target {
|
||||
let mut base = super::i686_unknown_linux_gnu::target();
|
||||
base.cpu = "i386".to_string();
|
||||
base.llvm_target = "i386-unknown-linux-gnu".to_string();
|
||||
base
|
||||
}
|
8
compiler/rustc_target/src/spec/i486_unknown_linux_gnu.rs
Normal file
8
compiler/rustc_target/src/spec/i486_unknown_linux_gnu.rs
Normal file
@ -0,0 +1,8 @@
|
||||
use crate::spec::Target;
|
||||
|
||||
pub fn target() -> Target {
|
||||
let mut base = super::i686_unknown_linux_gnu::target();
|
||||
base.cpu = "i486".to_string();
|
||||
base.llvm_target = "i486-unknown-linux-gnu".to_string();
|
||||
base
|
||||
}
|
Loading…
Reference in New Issue
Block a user