Merge pull request #3891 from mapnik/compiler-detect

don't error oddly if compiler is not found
This commit is contained in:
Artem Pavlenko 2018-04-30 09:15:34 +02:00 committed by GitHub
commit 4691315e5a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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'] = []