about summary refs log tree commit diff
path: root/compiler/rustc_codegen_gcc
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume.gomez@huawei.com>2023-10-28 16:29:07 +0200
committerGuillaume Gomez <guillaume.gomez@huawei.com>2023-11-02 21:03:27 +0100
commit3c58feaa085d9f082e0bff8ad72cfd9abb1ef75b (patch)
tree0872bbf6ce446b45d28640715ca601a8062998cc /compiler/rustc_codegen_gcc
parentead5dffeecee22fffc129bd96a92967fe68125d0 (diff)
downloadrust-3c58feaa085d9f082e0bff8ad72cfd9abb1ef75b.tar.gz
rust-3c58feaa085d9f082e0bff8ad72cfd9abb1ef75b.zip
Fix config.sh script
Diffstat (limited to 'compiler/rustc_codegen_gcc')
-rw-r--r--compiler/rustc_codegen_gcc/config.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_gcc/config.sh b/compiler/rustc_codegen_gcc/config.sh
index 006758e19e1..97a7dba886a 100644
--- a/compiler/rustc_codegen_gcc/config.sh
+++ b/compiler/rustc_codegen_gcc/config.sh
@@ -25,7 +25,7 @@ else
     exit 1
 fi
 
-HOST_TRIPLE=$(rustc -vV | grep host | cut -d: -f2 | tr -d " ")
+HOST_TRIPLE=$($RUSTC -vV | grep host | cut -d: -f2 | tr -d " ")
 # TODO: remove $OVERWRITE_TARGET_TRIPLE when config.sh is removed.
 TARGET_TRIPLE="${OVERWRITE_TARGET_TRIPLE:-$HOST_TRIPLE}"