Lines Matching +full:configure +full:- +full:args
2 ##===- utils/llvmbuild - Build the LLVM project ----------------*-python-*-===##
9 ##===----------------------------------------------------------------------===##
46 # llvmbuild --src=~/llvm/commit --src=~/llvm/staging --src=~/llvm/official
47 # --build=debug --build=release --build=paranoid
48 # --prefix=/home/greened/install --builddir=/home/greened/build
52 # ~/install. llvm-compilers-check creates separate build and install
58 # The user may control parallelism via the --jobs and --threads
59 # switches. --jobs tells llvm-compilers-checl the maximum total
61 # as equivalent to the GNU make -j switch. --threads tells
62 # llvm-compilers-check how many worker threads to use to accomplish
63 # those builds. If --threads is less than --jobs, --threads workers
65 # to build. Then llvm-compilers-check will invoke GNU make with -j
66 # (--jobs / --threads) to use up the remaining job capacity. Once a
70 ##===----------------------------------------------------------------------===##
120 parser.add_option("-v", "--verbose", action="store_true",
124 parser.add_option("--src", action="append",
125 help=("Top-level source directory [default: %default]"))
126 parser.add_option("--build", action="append",
128 parser.add_option("--cc", default=find_executable("cc"),
130 parser.add_option("--cxx", default=find_executable("c++"),
132 parser.add_option("--threads", default=4, type="int",
135 parser.add_option("--jobs", "-j", default=8, type="int",
138 parser.add_option("--prefix",
140 parser.add_option("--builddir",
142 parser.add_option("--extra-llvm-config-flags", default="",
143 help=("Extra flags to pass to llvm configure [default: %default]"))
144 parser.add_option("--force-configure", default=False, action="store_true",
146 parser.add_option("--no-dragonegg", default=False, action="store_true",
148 parser.add_option("--no-install", default=False, action="store_true",
150 parser.add_option("--keep-going", default=False, action="store_true",
152 parser.add_option("--no-flavor-prefix", default=False, action="store_true",
154 parser.add_option("--enable-werror", default=False, action="store_true",
155 help=("Build with -Werror"))
282 prefix = self.component_abbrev[component.replace("-", "_")]
305 + str(line, "utf-8").rstrip())
320 command += ["-v", "-x", "c++", "/dev/null", "-fsyntax-only"]
336 includes.append(str(line, "utf-8").strip())
352 prefix = "[" + ssabbrev[self.source_abbrev[source]] + "-" + self.build_abbrev[build] + "]"
369 llvm=dict(debug=["--prefix=" + self.install_prefix,
370 "--enable-assertions",
371 "--disable-optimized",
372 "--with-gcc-toolchain=" + cxxroot],
373 release=["--prefix=" + self.install_prefix,
374 "--enable-optimized",
375 "--with-gcc-toolchain=" + cxxroot],
376 paranoid=["--prefix=" + self.install_prefix,
377 "--enable-assertions",
378 "--enable-expensive-checks",
379 "--disable-optimized",
380 "--with-gcc-toolchain=" + cxxroot]),
386 configure_flags["llvm"]["debug"].append("--enable-werror")
387 configure_flags["llvm"]["release"].append("--enable-werror")
388 configure_flags["llvm"]["paranoid"].append("--enable-werror")
405 llvm=dict(debug=["-j" + str(self.jobs)],
406 release=["-j" + str(self.jobs)],
407 paranoid=["-j" + str(self.jobs)]),
408 dragonegg=dict(debug=["-j" + str(self.jobs)],
409 release=["-j" + str(self.jobs)],
410 paranoid=["-j" + str(self.jobs)]))
417 LLVM_CONFIG=self.install_prefix + "/bin/llvm-config"),
419 LLVM_CONFIG=self.install_prefix + "/bin/llvm-config"),
421 LLVM_CONFIG=self.install_prefix + "/bin/llvm-config")))
468 comp_key = comp.replace("-", "_")
477 configrc = self.configure(component, srcdir, builddir,
482 self.logger.info("[None] Failed to configure " + component + " in " + installdir)
518 self.logger.info("Failed to configure " + component + " in " + installdir)
520 def configure(self, component, srcdir, builddir, flags, env): member in Builder
521 prefix = self.component_abbrev[component.replace("-", "_")]
523 self.logger.debug("Configure " + str(flags) + " " + str(srcdir) + " -> "
527 llvm=[(srcdir + "/configure", builddir + "/Makefile")],
532 for conf, mf in configure_files[component.replace("-", "_")]:
534 # No configure necessary
538 self.logger.info("[" + prefix + "] Configure failed, no configure script " + conf)
539 return -1
554 program = srcdir + "/configure"
556 self.logger.info("[" + prefix + "] Configure failed, cannot execute " + program)
557 return -1
559 args = [program]
560 args += ["--verbose"]
561 args += flags
562 return self.execute(args, builddir, env, component)
572 args = [program]
573 args += flags
574 return self.execute(args, builddir, env, component)
583 (options, args) = parser.parse_args()
588 format='%(name)-13s: %(message)s')
591 format='%(name)-13s: %(message)s')