From 503263976a827f1bfa89226e1f606d1e2db7b276 Mon Sep 17 00:00:00 2001 From: Gergely Nagy Date: Wed, 26 Aug 2020 23:58:39 +0200 Subject: [PATCH] wip: CC, CXX, AR override support, with full paths Signed-off-by: Gergely Nagy --- bin/kaleidoscope-builder | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/kaleidoscope-builder b/bin/kaleidoscope-builder index 7f0f2d48..1e08dedc 100755 --- a/bin/kaleidoscope-builder +++ b/bin/kaleidoscope-builder @@ -379,9 +379,9 @@ compile () { fi fi - _CMD_CXX="${COMPILER_PREFIX}${CXX_COMPILER_BASENAME}${COMPILER_SUFFIX}" - _CMD_CC="${COMPILER_PREFIX}${C_COMPILER_BASENAME}${COMPILER_SUFFIX}" - _CMD_AR="${COMPILER_PREFIX}${AR_BASENAME}${COMPILER_SUFFIX}" + _CMD_CXX="${CXX:-${COMPILER_PREFIX}${CXX_COMPILER_BASENAME}${COMPILER_SUFFIX}}" + _CMD_CC="${CC:-${COMPILER_PREFIX}${C_COMPILER_BASENAME}${COMPILER_SUFFIX}}" + _CMD_AR="${AR:-${COMPILER_PREFIX}${AR_BASENAME}${COMPILER_SUFFIX}}" # SC2091: We do not care if quotes or backslashes are not respected. # SC2086: We want word splitting.