This repository was archived by the owner on May 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff 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.
You can’t perform that action at this time.
0 commit comments