summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNico Weber <nicolasweber@gmx.de>2019-08-23 13:40:54 +0000
committerNico Weber <nicolasweber@gmx.de>2019-08-23 13:40:54 +0000
commit01d7fe760581e7a1a9b77a8f944caff7bb21f456 (patch)
tree0042f706b1667ea8aa2a2fab906b39bcf5ddd9b9
parent5f7d6ac7bf3b7a954d9826b93872063f8eb08810 (diff)
downloadbcm5719-llvm-01d7fe760581e7a1a9b77a8f944caff7bb21f456.tar.gz
bcm5719-llvm-01d7fe760581e7a1a9b77a8f944caff7bb21f456.zip
libcxx: Make gen_link_script.py print contents only in --dryrun mode
The build should generally be quiet if there are no errors, and this script has been around long enough that we can remove the log output. If we ever need to debug something with this script, we can put back the logging then. Differential Revision: https://reviews.llvm.org/D66594 llvm-svn: 369757
-rwxr-xr-xlibcxx/utils/gen_link_script.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/libcxx/utils/gen_link_script.py b/libcxx/utils/gen_link_script.py
index 238c5747cc8..eaa752d5ae2 100755
--- a/libcxx/utils/gen_link_script.py
+++ b/libcxx/utils/gen_link_script.py
@@ -24,7 +24,8 @@ def main():
parser.add_argument("--rename", action="store_true", default=False,
help="Rename the output as input so we can replace it")
parser.add_argument("--input", help="Path to libc++ library", required=True)
- parser.add_argument("--output", help="Path to libc++ linker script", required=True)
+ parser.add_argument("--output", help="Path to libc++ linker script",
+ required=True)
parser.add_argument("libraries", nargs="+",
help="List of libraries libc++ depends on")
args = parser.parse_args()
@@ -37,9 +38,9 @@ def main():
# Generate the linker script contents.
contents = "INPUT(%s)" % ' '.join([libcxx] + public_libs)
- print("GENERATING SCRIPT: '%s' as file %s" % (contents, args.output))
if args.dryrun:
+ print("GENERATING SCRIPT: '%s' as file %s" % (contents, args.output))
return 0
# Remove the existing libc++ symlink if it exists.
OpenPOWER on IntegriCloud