Skip to content

Commit d16d949

Browse files
authored
Merge pull request rust-lang#504 from nicholasbishop/bishop-no-uefi-asm
2 parents 4796bd2 + 6a4c020 commit d16d949

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

compiler-builtins/build.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,8 @@ mod c {
465465
}
466466

467467
// Remove the assembly implementations that won't compile for the target
468-
if llvm_target[0] == "thumbv6m" || llvm_target[0] == "thumbv8m.base" {
468+
if llvm_target[0] == "thumbv6m" || llvm_target[0] == "thumbv8m.base" || target_os == "uefi"
469+
{
469470
let mut to_remove = Vec::new();
470471
for (k, v) in sources.map.iter() {
471472
if v.ends_with(".S") {

0 commit comments

Comments
 (0)