From fd117bd332af1e3296c353b62f99b87f9d10cba9 Mon Sep 17 00:00:00 2001 From: Andrea Shepard <andrea@special-circumstanc.es> Date: Tue, 12 Nov 2019 20:20:46 +0000 Subject: [PATCH] Did that ever work? --- SConstruct | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/SConstruct b/SConstruct index 43b9577b..430876ee 100644 --- a/SConstruct +++ b/SConstruct @@ -187,7 +187,7 @@ if GetOption("use_llvm"): shell=True, \ stdin=subprocess.PIPE, stdout=subprocess.PIPE).communicate() if LooseVersion(llvm_config_version[0]) < LooseVersion("3.6"): - print "This LLVM version %s is too old" % llvm_config_version[0].strip() + print("This LLVM version %s is too old" % llvm_config_version[0].strip()) Exit(1) if LooseVersion(llvm_config_version[0]) < LooseVersion("3.9") and \ @@ -220,8 +220,8 @@ if GetOption("use_llvm"): if m: llvm_computed_shared_lib_name = "LLVM-%d.%d" % ((int)(m.group(1)), (int)(m.group(2))) else: - print "Couldn't compute shared library name from LLVM version '%s', but needed to" % \ - llvm_config_version[0] + print("Couldn't compute shared library name from LLVM version '%s', but needed to" % \ + llvm_config_version[0]) Exit(1) else: # We won't be needing it @@ -253,7 +253,7 @@ if GetOption("use_llvm"): p = re.compile("^-D(.*)$") llvm_defines = [p.match(flag).group(1) for flag in flags if p.match(flag)] except: - print "%s failed. Make sure you have LLVM and clang installed." % env["LLVM_CONFIG"] + print("%s failed. Make sure you have LLVM and clang installed." % env["LLVM_CONFIG"]) Exit(1) # Get the llvm includedir, which the python bindings need @@ -263,7 +263,7 @@ if GetOption("use_llvm"): stdin=subprocess.PIPE, stdout=subprocess.PIPE).communicate() llvm_includes = llvm_config_includes[0].splitlines() except: - print "%s failed. Make sure you have LLVM and clang installed." % env["LLVM_CONFIG"] + print("%s failed. Make sure you have LLVM and clang installed." % env["LLVM_CONFIG"]) Exit(1) # This goes here so we already know all the LLVM crap -- GitLab