From 8af9bfe8e08ef5eb871cc1e2dcfda7b88471a636 Mon Sep 17 00:00:00 2001 From: Dane Blakely Springmeyer Date: Sun, 29 Apr 2018 21:08:36 -0700 Subject: [PATCH] don't error oddly if compiler is not found --- SConstruct | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/SConstruct b/SConstruct index a27cb2340..39225faec 100644 --- a/SConstruct +++ b/SConstruct @@ -1275,7 +1275,10 @@ if not preconfigured: color_print(4,"Configuring on %s in *%s*..." % (env['PLATFORM'],mode)) cxx_version = call("%s --version" % env["CXX"] ,silent=True) - color_print(5, "CXX %s" % cxx_version.decode("utf8")) + if cxx_version: + color_print(5, "CXX %s" % cxx_version.decode("utf8")) + else: + color_print(5, "Could not detect CXX compiler") env['MISSING_DEPS'] = [] env['SKIPPED_DEPS'] = []