about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAntoni Boucher <bouanto@zoho.com>2023-06-10 14:08:33 -0400
committerAntoni Boucher <bouanto@zoho.com>2023-06-11 11:52:44 -0400
commite9708ebcefe398d5d8669e80260a4c73415ddc1d (patch)
tree65fbb0be7bf28a124ff3496e715d7bf1a94848a8
parent984b9c52ccc0d493d2215167ecb03d76e9cb30ec (diff)
downloadrust-e9708ebcefe398d5d8669e80260a4c73415ddc1d.tar.gz
rust-e9708ebcefe398d5d8669e80260a4c73415ddc1d.zip
Add note
-rwxr-xr-xtest.sh9
1 files changed, 5 insertions, 4 deletions
diff --git a/test.sh b/test.sh
index c62c49cef99..7c8fe55da14 100755
--- a/test.sh
+++ b/test.sh
@@ -356,11 +356,12 @@ function test_rustc() {
     # We need to overwrite the sysroot in the tests, now.
     # TODO(antoyo): find a faster way to do this.
     # FIXME: this makes the stderr different since it changes the line numbers.
-    for file in $(find tests/ui -type f -name '*.rs'); do
-        sed -ie "1i // compile-flags: --sysroot "$(pwd)"/../build_sysroot/sysroot\n" $file
-    done
+    #for file in $(find tests/ui -type f -name '*.rs'); do
+        #sed -ie "1i // compile-flags: --sysroot "$(pwd)"/../build_sysroot/sysroot\n" $file
+    #done
 
-    RUSTC_ARGS="$TEST_FLAGS -Csymbol-mangling-version=v0 -Zcodegen-backend="$(pwd)"/../target/"$CHANNEL"/librustc_codegen_gcc."$dylib_ext""
+    # TODO: copy the sysroot at the correct location to not have to use the --sysroot flag.
+    RUSTC_ARGS="$TEST_FLAGS -Csymbol-mangling-version=v0 -Zcodegen-backend="$(pwd)"/../target/"$CHANNEL"/librustc_codegen_gcc."$dylib_ext" --sysroot "$(pwd)"/../build_sysroot/sysroot"
 
     if [ $# -eq 0 ]; then
         # No argument supplied to the function. Doing nothing.