Skip to content

Commit 32a6ecf

Browse files
Properly check IS_CROSS_COMPILING variable
Two checks for IS_CROSS_COMPILING value in build-elf32.sh assumed that this variable is "true" if set, which is wrong, because build-all.sh always sets this variable, either to "yes" or "no". This patch fixes this problem, now checks is done against "yes" value of this variable to figure out of this is a cross-compilation of toolchain. Signed-off-by: Anton Kolesov <[email protected]>
1 parent cc98dab commit 32a6ecf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build-elf32.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ fi
186186
# started to cause build issues. As a result it is required to disable them
187187
# explicitly - otherwise either there would a build failure or a bunch of
188188
# useless but large files.
189-
if [ $IS_CROSS_COMPILING ]; then
189+
if [ $IS_CROSS_COMPILING = yes ]; then
190190
pch_opt=--disable-libstdcxx-pch
191191
else
192192
pch_opt=
@@ -378,7 +378,7 @@ fi
378378
# Similar to ARC Linux targets, on Windows there are issues with exceptions when
379379
# GDB is compiled as a C++ applications, so as a temporary measure disable C++
380380
# when doing canadian cross.
381-
if [ $IS_CROSS_COMPILING ]; then
381+
if [ $IS_CROSS_COMPILING = yes ]; then
382382
cxx_build=--disable-build-with-cxx
383383
else
384384
cxx_build=

0 commit comments

Comments
 (0)