Enable codegen by default
This commit is contained in:
parent
a7924ac69a
commit
75baefebbb
2 changed files with 5 additions and 5 deletions
4
build.sh
4
build.sh
|
@ -13,7 +13,7 @@ else
|
|||
fi
|
||||
|
||||
build_lib() {
|
||||
SHOULD_CODEGEN=1 $RUSTC $2 --crate-name $1 --crate-type lib
|
||||
$RUSTC $2 --crate-name $1 --crate-type lib
|
||||
}
|
||||
|
||||
run_bin() {
|
||||
|
@ -60,7 +60,7 @@ time $RUSTC target/libcore/src/libcore/lib.rs --crate-type lib --crate-name core
|
|||
pushd xargo
|
||||
rm -r ~/.xargo/HOST || true
|
||||
export XARGO_RUST_SRC=$(pwd)'/../target/libcore/src'
|
||||
time SHOULD_CODEGEN=1 xargo build --color always
|
||||
time xargo build --color always
|
||||
popd
|
||||
|
||||
cat target/out/log.txt | sort | uniq -c
|
||||
|
|
|
@ -95,9 +95,9 @@ mod prelude {
|
|||
pub use crate::Caches;
|
||||
|
||||
pub fn should_codegen(sess: &Session) -> bool {
|
||||
//return true;
|
||||
::std::env::var("SHOULD_CODEGEN").is_ok()
|
||||
|| sess.crate_types.get().contains(&CrateType::Executable)
|
||||
true
|
||||
//::std::env::var("SHOULD_CODEGEN").is_ok()
|
||||
// || sess.crate_types.get().contains(&CrateType::Executable)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue