Merge commit 'fbda869b4e
' into sync_cg_clif-2024-04-05
This commit is contained in:
commit
6cf6fd38ec
16 changed files with 85 additions and 121 deletions
|
@ -6,7 +6,7 @@ use std::env;
|
|||
use std::path::PathBuf;
|
||||
use std::process;
|
||||
|
||||
use self::utils::{is_ci, is_ci_opt, Compiler};
|
||||
use self::utils::Compiler;
|
||||
|
||||
mod abi_cafe;
|
||||
mod bench;
|
||||
|
@ -60,14 +60,9 @@ fn main() {
|
|||
}
|
||||
env::set_var("CG_CLIF_DISABLE_INCR_CACHE", "1");
|
||||
|
||||
if is_ci() {
|
||||
// Disabling incr comp reduces cache size and incr comp doesn't save as much on CI anyway
|
||||
env::set_var("CARGO_BUILD_INCREMENTAL", "false");
|
||||
|
||||
if !is_ci_opt() {
|
||||
// Enable the Cranelift verifier
|
||||
env::set_var("CG_CLIF_ENABLE_VERIFIER", "1");
|
||||
}
|
||||
// Force incr comp even in release mode unless in CI or incremental builds are explicitly disabled
|
||||
if env::var_os("CARGO_BUILD_INCREMENTAL").is_none() {
|
||||
env::set_var("CARGO_BUILD_INCREMENTAL", "true");
|
||||
}
|
||||
|
||||
let mut args = env::args().skip(1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue