Skip to content

Commit

Permalink
Rollup merge of #80662 - rxrbln:master, r=estebank
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Dylan-DPC authored Jan 13, 2021
2 parents ac7267a + a0b0aec commit 492cb39
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
8 changes: 8 additions & 0 deletions compiler/rustc_target/src/spec/i386_unknown_linux_gnu.rs
Original file line number Diff line number Diff line change
@@ -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 changes: 8 additions & 0 deletions compiler/rustc_target/src/spec/i486_unknown_linux_gnu.rs
Original file line number Diff line number Diff line change
@@ -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
}

0 comments on commit 492cb39

Please sign in to comment.