1
Fork 0

Enable codegen by default

This commit is contained in:
bjorn3 2018-10-23 10:57:09 +02:00
parent a7924ac69a
commit 75baefebbb
2 changed files with 5 additions and 5 deletions

View file

@ -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

View file

@ -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)
}
}