If no toolchain info is specified, skip check completely

Ptxdist does a toolchain check, but if all fields are empty we
assume it is an external (not an OSELAS) toolchain.

Signed-off-by: Remy Bohmer <[email protected]>
---
 bin/ptxdist |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/bin/ptxdist b/bin/ptxdist
index ac6b5ab..b0abc7c 100755
--- a/bin/ptxdist
+++ b/bin/ptxdist
@@ -1528,6 +1528,14 @@ do_select_toolchain_guess()
        local target="$(ptxd_get_ptxconf PTXCONF_GNU_TARGET)"
        local gcc_version="$(ptxd_get_ptxconf PTXCONF_CROSSCHAIN_CHECK)"
 
+       if [ -z "${vendor}" -a \
+            ! -z "${target}" -a \
+            -z "${gcc_version}" ]; then
+               ptxd_dialog_msgbox \
+                       "info: No toolchain information, assuming external 
toolchain..."
+               return 1
+       fi
+
        if [ -z "${vendor}" -o \
            -z "${target}" -o \
            -z "${gcc_version}" ]; then
-- 
1.7.0.4


-- 
ptxdist mailing list
[email protected]

Reply via email to