summaryrefslogtreecommitdiffstats
path: root/lldb/scripts/Xcode/build-llvm.py
diff options
context:
space:
mode:
authorSerge Guelton <sguelton@redhat.com>2019-03-21 18:27:40 +0000
committerSerge Guelton <sguelton@redhat.com>2019-03-21 18:27:40 +0000
commit525cd59f5a12254e80d5f20bf2d9713728a114d4 (patch)
treebb174d21b449a016712aa1867fdbdff781b34b15 /lldb/scripts/Xcode/build-llvm.py
parent05ea3a6be3ba172e8824a8fb66b799b3cc2c72f3 (diff)
downloadbcm5719-llvm-525cd59f5a12254e80d5f20bf2d9713728a114d4.tar.gz
bcm5719-llvm-525cd59f5a12254e80d5f20bf2d9713728a114d4.zip
Python 2/3 compatibility: from __future__ import print_function
Differential Revision: https://reviews.llvm.org/D59580 llvm-svn: 356695
Diffstat (limited to 'lldb/scripts/Xcode/build-llvm.py')
-rwxr-xr-xlldb/scripts/Xcode/build-llvm.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/lldb/scripts/Xcode/build-llvm.py b/lldb/scripts/Xcode/build-llvm.py
index 0a9264f3c4a..a678247e49b 100755
--- a/lldb/scripts/Xcode/build-llvm.py
+++ b/lldb/scripts/Xcode/build-llvm.py
@@ -250,7 +250,7 @@ def should_build_llvm():
def do_symlink(source_path, link_path):
- print "Symlinking " + source_path + " to " + link_path
+ print("Symlinking " + source_path + " to " + link_path)
if os.path.islink(link_path):
os.remove(link_path)
if not os.path.exists(link_path):
@@ -376,12 +376,12 @@ def cmake_flags():
def run_cmake(cmake_build_dir, ninja_binary_path):
cmake_binary = find_cmake()
- print "found cmake binary: using \"{}\"".format(cmake_binary)
+ print("found cmake binary: using \"{}\"".format(cmake_binary))
command_line = [cmake_binary] + cmake_flags() + [
"-DCMAKE_MAKE_PROGRAM={}".format(ninja_binary_path),
llvm_source_path()]
- print "running cmake like so: ({}) in dir ({})".format(command_line, cmake_build_dir)
+ print("running cmake like so: ({}) in dir ({})".format(command_line, cmake_build_dir))
subprocess.check_call(
command_line,
@@ -413,7 +413,7 @@ def build_ninja_if_needed():
"ninja", os.environ["PATH"].split(os.pathsep))
if ninja_binary_path:
# It's on the path. cmake will find it. We're good.
- print "found ninja here: \"{}\"".format(ninja_binary_path)
+ print("found ninja here: \"{}\"".format(ninja_binary_path))
return ninja_binary_path
# Figure out if we need to build it.
@@ -422,7 +422,7 @@ def build_ninja_if_needed():
if not is_executable(ninja_binary_path):
# Build ninja
command_line = ["python", "configure.py", "--bootstrap"]
- print "building ninja like so: ({}) in dir ({})".format(command_line, ninja_build_dir)
+ print("building ninja like so: ({}) in dir ({})".format(command_line, ninja_build_dir))
subprocess.check_call(
command_line,
cwd=ninja_build_dir,
OpenPOWER on IntegriCloud