Add 0.1.4 compiler_builtins. Git ignore llc.

master
dzy 6 years ago
parent 08c73945eb
commit 61eda6b19e

@ -95,17 +95,28 @@ fi
CNAME=compiler_builtins CNAME=compiler_builtins
if ! [[ -f ${OUTDIR}/${CNAME}.o ]] if ! [[ -f ${OUTDIR}/${CNAME}.o ]]
then then
rustc --crate-name compiler_builtins $CARGO_PATH/registry/src/github.com-1ecc6299db9ec823/compiler_builtins-0.1.3/src/lib.rs \
--color always --crate-type lib --emit=metadata,llvm-bc \ if [[ -d $CARGO_PATH/registry/src/github.com-1ecc6299db9ec823/compiler_builtins-0.1.3 ]]
-C opt-level=3 \ then
-C debuginfo=2 \ COMPILER_BUILTINS_PATH=$CARGO_PATH/registry/src/github.com-1ecc6299db9ec823/compiler_builtins-0.1.3
-Z force-unstable-if-unmarked \ elif [[ -d $CARGO_PATH/registry/src/github.com-1ecc6299db9ec823/compiler_builtins-0.1.4 ]]
--cfg 'feature="compiler-builtins"' \ then
--cfg 'feature="mem"' \ COMPILER_BUILTINS_PATH=$CARGO_PATH/registry/src/github.com-1ecc6299db9ec823/compiler_builtins-0.1.4
--out-dir ${OUTDIR} \ else
--target $TARGET_JSON \ echo "Cannot find compiler_builtins crate! Please file an issue report"
-L ${OUTDIR} fi
gen_full_rlib
rustc --crate-name compiler_builtins ${COMPILER_BUILTINS_PATH}/src/lib.rs \
--color always --crate-type lib --emit=metadata,llvm-bc \
-C opt-level=3 \
-C debuginfo=2 \
-Z force-unstable-if-unmarked \
--cfg 'feature="compiler-builtins"' \
--cfg 'feature="mem"' \
--out-dir ${OUTDIR} \
--target $TARGET_JSON \
-L ${OUTDIR}
gen_full_rlib
fi fi
CNAME=alloc CNAME=alloc
@ -367,7 +378,7 @@ rustc --crate-name bit_allocator $PWD/../crate/bit-allocator/src/lib.rs \
-C debug-assertions=on \ -C debug-assertions=on \
--out-dir ${OUTDIR} \ --out-dir ${OUTDIR} \
--target $TARGET_JSON \ --target $TARGET_JSON \
-L ${OUTDIR} -L ${OUTDIR}
gen_full_rlib gen_full_rlib
fi fi
@ -393,7 +404,7 @@ fi
CNAME=rcore_process CNAME=rcore_process
if ! [[ -f ${OUTDIR}/${CNAME}.o ]] if ! [[ -f ${OUTDIR}/${CNAME}.o ]]
then then
rustc --edition=2018 --crate-name rcore_process $PWD/../crate/process/src/lib.rs \ M_MODE="" rustc --edition=2018 --crate-name rcore_process $PWD/../crate/process/src/lib.rs \
--color always --crate-type lib --emit=metadata,llvm-bc \ --color always --crate-type lib --emit=metadata,llvm-bc \
-C opt-level=1 \ -C opt-level=1 \
-C debuginfo=2 \ -C debuginfo=2 \
@ -402,7 +413,7 @@ rustc --edition=2018 --crate-name rcore_process $PWD/../crate/process/src/lib.rs
--target $TARGET_JSON \ --target $TARGET_JSON \
--extern log=${OUTDIR}/liblog.rlib \ --extern log=${OUTDIR}/liblog.rlib \
--extern spin=${OUTDIR}/libspin.rlib \ --extern spin=${OUTDIR}/libspin.rlib \
-L ${OUTDIR} -L ${OUTDIR}
gen_full_rlib gen_full_rlib
fi fi
@ -417,7 +428,7 @@ rustc --edition=2018 --crate-name rcore_memory $PWD/../crate/memory/src/lib.rs \
--out-dir ${OUTDIR} \ --out-dir ${OUTDIR} \
--target $TARGET_JSON \ --target $TARGET_JSON \
--extern log=${OUTDIR}/liblog.rlib \ --extern log=${OUTDIR}/liblog.rlib \
-L ${OUTDIR} -L ${OUTDIR}
gen_full_rlib gen_full_rlib
fi fi

1
tools/.gitignore vendored

@ -0,0 +1 @@
llc
Loading…
Cancel
Save