mirror of
https://github.com/FuelLabs/sway.git
synced 2025-12-23 10:11:56 +00:00
Implement SWAY_LLVM_NO_OPT.
This commit is contained in:
parent
7b79969574
commit
70731b60d4
1 changed files with 6 additions and 0 deletions
|
|
@ -2395,6 +2395,12 @@ pub fn build_with_options(
|
|||
"LLVM backend produced native executable at {}",
|
||||
native_artifact.display()
|
||||
);
|
||||
let skip_llvm_opt = env::var("SWAY_LLVM_NO_OPT")
|
||||
.map(|val| val != "0" && !val.eq_ignore_ascii_case("false"))
|
||||
.unwrap_or(false);
|
||||
if skip_llvm_opt {
|
||||
continue;
|
||||
}
|
||||
let opt = env::var("LLVM_OPT").unwrap_or_else(|_| "opt".into());
|
||||
let opt_ll_path = output_dir
|
||||
.join(format!("{}-opt", pkg_manifest.project.name))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue