Skip to content

Commit e9708eb

Browse files
committed
Add note
1 parent 984b9c5 commit e9708eb

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

test.sh

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -356,11 +356,12 @@ function test_rustc() {
356356
# We need to overwrite the sysroot in the tests, now.
357357
# TODO(antoyo): find a faster way to do this.
358358
# FIXME: this makes the stderr different since it changes the line numbers.
359-
for file in $(find tests/ui -type f -name '*.rs'); do
360-
sed -ie "1i // compile-flags: --sysroot "$(pwd)"/../build_sysroot/sysroot\n" $file
361-
done
359+
#for file in $(find tests/ui -type f -name '*.rs'); do
360+
#sed -ie "1i // compile-flags: --sysroot "$(pwd)"/../build_sysroot/sysroot\n" $file
361+
#done
362362

363-
RUSTC_ARGS="$TEST_FLAGS -Csymbol-mangling-version=v0 -Zcodegen-backend="$(pwd)"/../target/"$CHANNEL"/librustc_codegen_gcc."$dylib_ext""
363+
# TODO: copy the sysroot at the correct location to not have to use the --sysroot flag.
364+
RUSTC_ARGS="$TEST_FLAGS -Csymbol-mangling-version=v0 -Zcodegen-backend="$(pwd)"/../target/"$CHANNEL"/librustc_codegen_gcc."$dylib_ext" --sysroot "$(pwd)"/../build_sysroot/sysroot"
364365

365366
if [ $# -eq 0 ]; then
366367
# No argument supplied to the function. Doing nothing.

0 commit comments

Comments
 (0)