summaryrefslogtreecommitdiffstats
path: root/bin/ptxdist
diff options
context:
space:
mode:
Diffstat (limited to 'bin/ptxdist')
-rwxr-xr-xbin/ptxdist6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/ptxdist b/bin/ptxdist
index 247b21339..d0cf1b931 100755
--- a/bin/ptxdist
+++ b/bin/ptxdist
@@ -559,9 +559,6 @@ check_compiler_icecc() {
if ! "${PTXDIST_ICECC}" --version | grep -q 'ICECC 1\.'; then
ptxd_bailout "PTXdist only supports icecc 1.x"
fi
- if "${PTXDIST_ICECC}" --help | grep -q ICECC_REMOTE_CPP; then
- export PTXDIST_ICECC_REMOTE_CPP=1
- fi &&
mkdir -p "${icecc_dir}/target" "${icecc_dir}/host" &&
(
echo "Creating icecc host environment..."
@@ -593,6 +590,9 @@ check_compiler_icecc() {
if [ -n "${compiler_prefix}" ]; then
ptxd_get_path "${icecc_dir}/target"/*.tar.gz &&
export ICECC_VERSION_TARGET="${ptxd_reply}"
+ fi &&
+ if "${PTXDIST_ICECC}" --help | grep -q ICECC_REMOTE_CPP; then
+ export PTXDIST_ICECC_REMOTE_CPP=1
fi
}