set BOOTSTRAP_SKIP_TARGET_SANITY
in opt-dist before running tests
opt-dist overrides the stage 0 compiler with previously compiled compilers, which can cause confusion in bootstrap's target sanity checks. It is best to skip that check. Signed-off-by: onur-ozkan <work@onurozkan.dev>
This commit is contained in:
parent
6ba72c0c7e
commit
1a743710aa
@ -102,7 +102,13 @@ llvm-config = "{llvm_config}"
|
|||||||
for test_path in env.skipped_tests() {
|
for test_path in env.skipped_tests() {
|
||||||
args.extend(["--skip", test_path]);
|
args.extend(["--skip", test_path]);
|
||||||
}
|
}
|
||||||
cmd(&args).env("COMPILETEST_FORCE_STAGE0", "1").run().context("Cannot execute tests")
|
cmd(&args)
|
||||||
|
.env("COMPILETEST_FORCE_STAGE0", "1")
|
||||||
|
// Above we override the stage 0 compiler with previously compiled compiler,
|
||||||
|
// which can cause confusion in bootstrap's target sanity checks.
|
||||||
|
.env("BOOTSTRAP_SKIP_TARGET_SANITY", "1")
|
||||||
|
.run()
|
||||||
|
.context("Cannot execute tests")
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Tries to find the version of the dist artifacts (either nightly, beta, or 1.XY.Z).
|
/// Tries to find the version of the dist artifacts (either nightly, beta, or 1.XY.Z).
|
||||||
|
Loading…
x
Reference in New Issue
Block a user