Skip to content

Commit

Permalink
Added support for i386-unknown-linux-gnu and i486-unknown-linux-gnu
Browse files Browse the repository at this point in the history
Support for both can be useful when creating new firmware, boot loaders,
or embedded operating systems.
  • Loading branch information
rxrbln committed Jan 5, 2021
1 parent db69136 commit a0b0aec
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 a0b0aec

Please sign in to comment.