Skip to content
This repository was archived by the owner on Feb 5, 2019. It is now read-only.

Commit 30db0c2

Browse files
committed
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@211300 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent 5b45c5d commit 30db0c2

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

utils/llvm-compilers-check

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,8 @@ def add_options(parser):
149149
help=("Do not do installs"))
150150
parser.add_option("--keep-going", default=False, action="store_true",
151151
help=("Keep going after failures"))
152+
parser.add_option("--no-flavor-prefix", default=False, action="store_true",
153+
help=("Do not append the build flavor to the install path"))
152154
parser.add_option("--enable-werror", default=False, action="store_true",
153155
help=("Build with -Werror"))
154156
return
@@ -348,7 +350,9 @@ class Builder(threading.Thread):
348350
ssabbrev = get_short_abbrevs([ab for ab in self.source_abbrev.values()])
349351

350352
prefix = "[" + ssabbrev[self.source_abbrev[source]] + "-" + self.build_abbrev[build] + "]"
351-
self.install_prefix += "/" + self.source_abbrev[source] + "/" + build
353+
if (not self.options.no_flavor_prefix):
354+
self.install_prefix += "/" + self.source_abbrev[source] + "/" + build
355+
352356
build_suffix += "/" + self.source_abbrev[source] + "/" + build
353357

354358
self.logger = logging.getLogger(prefix)

0 commit comments

Comments
 (0)