llvm.org GIT mirror llvm / 30db0c2
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 David Greene 5 years ago
1 changed file(s) with 5 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
148148 help=("Do not do installs"))
149149 parser.add_option("--keep-going", default=False, action="store_true",
150150 help=("Keep going after failures"))
151 parser.add_option("--no-flavor-prefix", default=False, action="store_true",
152 help=("Do not append the build flavor to the install path"))
151153 parser.add_option("--enable-werror", default=False, action="store_true",
152154 help=("Build with -Werror"))
153155 return
347349 ssabbrev = get_short_abbrevs([ab for ab in self.source_abbrev.values()])
348350
349351 prefix = "[" + ssabbrev[self.source_abbrev[source]] + "-" + self.build_abbrev[build] + "]"
350 self.install_prefix += "/" + self.source_abbrev[source] + "/" + build
352 if (not self.options.no_flavor_prefix):
353 self.install_prefix += "/" + self.source_abbrev[source] + "/" + build
354
351355 build_suffix += "/" + self.source_abbrev[source] + "/" + build
352356
353357 self.logger = logging.getLogger(prefix)