about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorPietro Albini <pietro.albini@ferrous-systems.com>2023-06-13 14:54:42 +0200
committerPietro Albini <pietro.albini@ferrous-systems.com>2023-06-13 14:54:42 +0200
commit47b67327664c7bdc80ca447ba3c790f4bd898db7 (patch)
treeab91029223f935b7c66ec9312ee30fad273caf39 /src
parent86aa326ec0491d3116a818e5ed4c523bdedd065f (diff)
add another check for empty `cc`s
Diffstat (limited to 'src')
-rw-r--r--src/bootstrap/test.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bootstrap/test.rs b/src/bootstrap/test.rs
index d7f0205cbed..904f27f472d 100644
--- a/src/bootstrap/test.rs
+++ b/src/bootstrap/test.rs
@@ -1792,7 +1792,7 @@ note: if you're sure you want to do this, please open an issue as to why. In the
 
         cmd.arg("--adb-path").arg("adb");
         cmd.arg("--adb-test-dir").arg(ADB_TEST_DIR);
-        if target.contains("android") {
+        if target.contains("android") && !builder.config.dry_run() {
             // Assume that cc for this target comes from the android sysroot
             cmd.arg("--android-cross-path")
                 .arg(builder.cc(target).parent().unwrap().parent().unwrap());