Add CI checks with LLVM sysroot#858
Conversation
build_system/src/config.rs
Outdated
There was a problem hiding this comment.
I believe we still need the -Zcodegen-backend flag even when using the LLVM sysroot.
There was a problem hiding this comment.
I guess we'll see soon enough. :3
There was a problem hiding this comment.
Well, the test will just use cg_llvm without this, so this is not what we want.
| use_system_gcc: bool, | ||
| with_llvm_sysroot: bool, |
There was a problem hiding this comment.
I would use 1 or 2 enums here to make the caller code clearer.
There was a problem hiding this comment.
In this case, the added value is pretty minimal imo.
| run_command_with_output_and_env(&command, None, Some(&env))?; | ||
|
|
||
| args.config_info.setup(&mut env, false)?; | ||
| args.config_info.setup(&mut env, false, false)?; |
There was a problem hiding this comment.
Please add a comment to mention that we always build the sysroot with cg_gcc and we don't need to build the sysroot with cg_llvm since it's already distributed by rustup and we can just not provide --sysroot to use it.
5d0bec5 to
e14606b
Compare
e14606b to
3f1d43c
Compare
Fixes #850.