From 36b50319de9ba3b498ab1ec9442753b8ff4ec498 Mon Sep 17 00:00:00 2001 From: "Cliff L. Biffle" Date: Mon, 17 May 2021 10:57:12 -0700 Subject: [PATCH] Suppress machine outliner to fix LLVM 12 bug. https://github.com/rust-lang/rust/issues/85351 --- xtask/src/dist.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/xtask/src/dist.rs b/xtask/src/dist.rs index 6fc344723..7ceab8a59 100644 --- a/xtask/src/dist.rs +++ b/xtask/src/dist.rs @@ -493,6 +493,7 @@ fn build( "RUSTFLAGS", &format!( "-C link-arg=-Tlink.x \ + -C llvm-args=--enable-machine-outliner=never \ -L {} \ -C link-arg=-z -C link-arg=common-page-size=0x20 \ -C link-arg=-z -C link-arg=max-page-size=0x20",