Skip to content

Commit f3b8b0a

Browse files
committed
use new _TRIPLETSH variable in llvm codepath
1 parent e8517d1 commit f3b8b0a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

_build.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -737,25 +737,25 @@ build_single_target() {
737737
_CXXFLAGS_GLOBAL="${_CXXFLAGS_GLOBAL} -I${tmp}/include/c++/backward"
738738
fi
739739
elif [ "${_HOSTOS}" = 'linux' ] && [ "${_OS}" = 'linux' ] && [ "${unamem}" != "${_machine}" ] && [ "${_CC}" = 'llvm' ]; then
740-
_CFLAGS_GLOBAL="${_CFLAGS_GLOBAL} -isystem /usr/${_machine}-linux-gnu/include"
741-
_LDFLAGS_GLOBAL="${_LDFLAGS_GLOBAL} -L/usr/${_machine}-linux-gnu/lib"
740+
_CFLAGS_GLOBAL="${_CFLAGS_GLOBAL} -isystem /usr/${_TRIPLETSH}/include"
741+
_LDFLAGS_GLOBAL="${_LDFLAGS_GLOBAL} -L/usr/${_TRIPLETSH}/lib"
742742
# https://packages.debian.org/testing/all/libgcc-13-dev-arm64-cross/filelist
743743
# /usr/lib/gcc-cross/aarch64-linux-gnu/13/
744-
tmp="$(find "/usr/lib/gcc-cross/${_machine}-linux-gnu" -mindepth 1 -maxdepth 1 -type d | head -n 1)"
744+
tmp="$(find "/usr/lib/gcc-cross/${_TRIPLETSH}" -mindepth 1 -maxdepth 1 -type d | head -n 1)"
745745
if [ -z "${tmp}" ]; then
746746
>&2 echo '! Error: Failed to detect gcc-cross env root.'
747747
exit 1
748748
fi
749749
_LDFLAGS_GLOBAL="${_LDFLAGS_GLOBAL} -L${tmp}"
750750
# https://packages.debian.org/testing/all/libstdc++-13-dev-arm64-cross/filelist
751751
# /usr/aarch64-linux-gnu/include/c++/13/
752-
tmp="$(find "/usr/${_machine}-linux-gnu/include/c++" -mindepth 1 -maxdepth 1 -type d | head -n 1)"
752+
tmp="$(find "/usr/${_TRIPLETSH}/include/c++" -mindepth 1 -maxdepth 1 -type d | head -n 1)"
753753
if [ -z "${tmp}" ]; then
754754
>&2 echo '! Error: Failed to detect g++-cross env root.'
755755
exit 1
756756
fi
757757
_CXXFLAGS_GLOBAL="${_CXXFLAGS_GLOBAL} -I${tmp}/include/c++"
758-
_CXXFLAGS_GLOBAL="${_CXXFLAGS_GLOBAL} -I${tmp}/include/c++/${_machine}-linux-gnu"
758+
_CXXFLAGS_GLOBAL="${_CXXFLAGS_GLOBAL} -I${tmp}/include/c++/${_TRIPLETSH}"
759759
_CXXFLAGS_GLOBAL="${_CXXFLAGS_GLOBAL} -I${tmp}/include/c++/backward"
760760
fi
761761

0 commit comments

Comments
 (0)