llvm.org GIT mirror llvm / 5b45c5d
Turn of -Werror by default Don't build with -Werror unless asked to. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@211299 91177308-0d34-0410-b5e6-96231b3b80d8 David Greene 5 years ago
1 changed file(s) with 7 addition(s) and 3 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("--enable-werror", default=False, action="store_true",
152 help=("Build with -Werror"))
151153 return
152154
153155 def check_options(parser, options, valid_builds):
360362
361363 configure_flags = dict(
362364 llvm=dict(debug=["--prefix=" + self.install_prefix,
363 "--enable-werror",
364365 "--enable-assertions",
365366 "--disable-optimized",
366367 "--with-gcc-toolchain=" + cxxroot],
367368 release=["--prefix=" + self.install_prefix,
368 "--enable-werror",
369369 "--enable-optimized",
370370 "--with-gcc-toolchain=" + cxxroot],
371371 paranoid=["--prefix=" + self.install_prefix,
372 "--enable-werror",
373372 "--enable-assertions",
374373 "--enable-expensive-checks",
375374 "--disable-optimized",
377376 dragonegg=dict(debug=[],
378377 release=[],
379378 paranoid=[]))
379
380 if (self.options.enable_werror):
381 configure_flags["llvm"]["debug"].append("--enable-werror")
382 configure_flags["llvm"]["release"].append("--enable-werror")
383 configure_flags["llvm"]["paranoid"].append("--enable-werror")
380384
381385 configure_env = dict(
382386 llvm=dict(debug=dict(CC=self.cc,