Skip to content

Commit 4b4a672

Browse files
committed
Auto merge of #26491 - omasanori:fix-18670, r=brson
I've configured with the parameters suggested by @brson in #18670 and confirmed that it works on Gentoo Linux amd64. Fixes #18670.
2 parents 55deea6 + 5939908 commit 4b4a672

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

configure

+8
Original file line numberDiff line numberDiff line change
@@ -1037,6 +1037,14 @@ for target_file in ${CFG_SRC_DIR}mk/cfg/*.mk; do
10371037
CFG_SUPPORTED_TARGET="${CFG_SUPPORTED_TARGET} $(basename "$target_file" .mk)"
10381038
done
10391039

1040+
# copy build-triples to host-triples so that builds are a subset of hosts
1041+
V_TEMP=""
1042+
for i in $CFG_BUILD $CFG_HOST;
1043+
do
1044+
echo "$V_TEMP" | grep -qF $i || V_TEMP="$V_TEMP${V_TEMP:+ }$i"
1045+
done
1046+
CFG_HOST=$V_TEMP
1047+
10401048
# copy host-triples to target-triples so that hosts are a subset of targets
10411049
V_TEMP=""
10421050
for i in $CFG_HOST $CFG_TARGET;

0 commit comments

Comments
 (0)