diff options
Diffstat (limited to 'scripts/wrapper/libwrapper.sh')
-rw-r--r-- | scripts/wrapper/libwrapper.sh | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/scripts/wrapper/libwrapper.sh b/scripts/wrapper/libwrapper.sh index 1eb418699..d86425ac8 100644 --- a/scripts/wrapper/libwrapper.sh +++ b/scripts/wrapper/libwrapper.sh @@ -297,9 +297,6 @@ add_icecc_args() { if [ "${1}" != clang ]; then add_late_arg "-fno-diagnostics-show-caret" add_late_arg "-gno-record-gcc-switches" - elif [ "${PTXDIST_ICECC_CLANG}" != 1 ]; then - unset PTXDIST_ICECC - return fi if [ "${PTXDIST_ICECC_REMOTE_CPP}" != 1 -o "${ICECC_REMOTE_CPP}" = "0" ]; then add_late_arg "-Wno-implicit-fallthrough" @@ -307,6 +304,18 @@ add_icecc_args() { fi } +clang_check_target_icecc() { + if [ "${PTXDIST_ICECC_CLANG}" != 1 ]; then + unset PTXDIST_ICECC + fi +} + +clang_check_host_icecc() { + if [ "${PTXDIST_ICECC_HOST_CLANG}" != 1 ]; then + unset PTXDIST_ICECC + fi +} + cc_add_target_icecc() { add_icecc_args "${@}" export ICECC_VERSION="$(echo ${PTXDIST_ICECC_DIR}/target/*.tar.gz)" |