File tree Expand file tree Collapse file tree 1 file changed +10
-18
lines changed Expand file tree Collapse file tree 1 file changed +10
-18
lines changed Original file line number Diff line number Diff line change @@ -60,27 +60,19 @@ build_sysroot() {
60
60
# Prepare and set MIRI_SYSROOT. Respects `MIRI_TEST_TARGET` and takes into account
61
61
# locally built vs. distributed rustc.
62
62
find_sysroot () {
63
- # Get ourselves a sysroot
64
63
if [ -n " $MIRI_SYSROOT " ]; then
65
64
# Sysroot already set, use that.
66
- true
67
- elif echo " $SYSROOT " | egrep -q ' build/[^/]+/stage' ; then
68
- # A local rustc build.
69
- if [ -n " $MIRI_TEST_TARGET " ]; then
70
- # Foreign targets still need a build. Use the rustc sources.
71
- export XARGO_RUST_SRC=" $SYSROOT /../../../src"
72
- build_sysroot --target " $MIRI_TEST_TARGET "
73
- else
74
- # Assume we have a proper host libstd in $SYSROOT.
75
- MIRI_SYSROOT=" $SYSROOT "
76
- fi
65
+ return 0
66
+ fi
67
+ # We need to build a sysroot.
68
+ if echo " $SYSROOT " | egrep -q ' build/[^/]+/stage' ; then
69
+ # A local rustc build. Use its source dir.
70
+ export XARGO_RUST_SRC=" $SYSROOT /../../../src"
71
+ fi
72
+ if [ -n " $MIRI_TEST_TARGET " ]; then
73
+ build_sysroot --target " $MIRI_TEST_TARGET "
77
74
else
78
- # A normal toolchain. We have to build a sysroot either way.
79
- if [ -n " $MIRI_TEST_TARGET " ]; then
80
- build_sysroot --target " $MIRI_TEST_TARGET "
81
- else
82
- build_sysroot
83
- fi
75
+ build_sysroot
84
76
fi
85
77
export MIRI_SYSROOT
86
78
}
You can’t perform that action at this time.
0 commit comments