Skip to content

Commit

Permalink
rust: Disable SSE2 to work around a rustc crash with UML
Browse files Browse the repository at this point in the history
It looks like rustc is crashing when building the doctests under UML. No
idea exactly why, but there was a SIGTRAP deep within LLVM somewhere.
Disabling SSE2 seems to fix it, as noted here:
https://bestrustcrates.com/p/this-small-project-iliakonnovrust-crash/index.html

Signed-off-by: David Gow <davidgow@google.com>
  • Loading branch information
sulix committed Dec 8, 2022
1 parent bd12347 commit f112128
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/generate_rust_target.rs
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ fn main() {
"data-layout",
"e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128",
);
let mut features = "-3dnow,-3dnowa,-mmx,+soft-float".to_string();
let mut features = "-3dnow,-3dnowa,-mmx,+soft-float,-sse,-sse2".to_string();
if cfg.has("RETPOLINE") {
features += ",+retpoline-external-thunk";
}
Expand Down

0 comments on commit f112128

Please sign in to comment.