summaryrefslogtreecommitdiffstats
path: root/llvm/utils/llvm-compilers-check
diff options
context:
space:
mode:
authorDavid Greene <greened@obbligato.org>2014-06-19 19:31:09 +0000
committerDavid Greene <greened@obbligato.org>2014-06-19 19:31:09 +0000
commit63677389908d93101134c81f1f8c6e1800729903 (patch)
tree68c28938c614f0eb5d07b7a568b490ddd2c8d0f9 /llvm/utils/llvm-compilers-check
parent9ccdb1700c64db010acbee28f8e6eb1009665777 (diff)
downloadbcm5719-llvm-63677389908d93101134c81f1f8c6e1800729903.tar.gz
bcm5719-llvm-63677389908d93101134c81f1f8c6e1800729903.zip
Add option to keep flavor out of the install directory
Sometimes we want to install things in "standard" locations and the flavor directories interfere with that. Add an option to keep them out of the install path. llvm-svn: 211300
Diffstat (limited to 'llvm/utils/llvm-compilers-check')
-rwxr-xr-xllvm/utils/llvm-compilers-check6
1 files changed, 5 insertions, 1 deletions
diff --git a/llvm/utils/llvm-compilers-check b/llvm/utils/llvm-compilers-check
index d745b3a7c50..c8bd905ff9c 100755
--- a/llvm/utils/llvm-compilers-check
+++ b/llvm/utils/llvm-compilers-check
@@ -149,6 +149,8 @@ def add_options(parser):
help=("Do not do installs"))
parser.add_option("--keep-going", default=False, action="store_true",
help=("Keep going after failures"))
+ parser.add_option("--no-flavor-prefix", default=False, action="store_true",
+ help=("Do not append the build flavor to the install path"))
parser.add_option("--enable-werror", default=False, action="store_true",
help=("Build with -Werror"))
return
@@ -348,7 +350,9 @@ class Builder(threading.Thread):
ssabbrev = get_short_abbrevs([ab for ab in self.source_abbrev.values()])
prefix = "[" + ssabbrev[self.source_abbrev[source]] + "-" + self.build_abbrev[build] + "]"
- self.install_prefix += "/" + self.source_abbrev[source] + "/" + build
+ if (not self.options.no_flavor_prefix):
+ self.install_prefix += "/" + self.source_abbrev[source] + "/" + build
+
build_suffix += "/" + self.source_abbrev[source] + "/" + build
self.logger = logging.getLogger(prefix)
OpenPOWER on IntegriCloud