diff options
author | comex | 2015-07-07 16:15:24 -0400 |
---|---|---|
committer | comex | 2015-07-07 16:15:24 -0400 |
commit | 193c6ba8dc61e2a3797ce4431656aa8491e11aaf (patch) | |
tree | 9afb47fd68111924c4789986027b0e00f9e1e741 /configure | |
parent | commit new compiled version of darwin-inject-asm so i don't go crazy... (diff) | |
download | substitute-193c6ba8dc61e2a3797ce4431656aa8491e11aaf.tar.gz |
Werror, Makefile fix
Diffstat (limited to '')
-rwxr-xr-x | configure | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -16,6 +16,7 @@ settings.add_setting_option('enable_tests', '--enable-tests', 'tests!', False, b settings.add_setting_option('enable_ios_bootstrap', '--enable-ios-bootstrap', 'default: true if you pass --xcode-sdk=iphoneos', lambda: 'iphoneos' in str(settings.host_machine().toolchains()[0].sdk_opt.value), bool=True) +settings.add_setting_option('enable_werror', '--enable-werror', '', False, bool=True) ldid_tool = mconfig.CLITool('ldid', ['ldid'], 'LDID', settings.host_machine(), settings.host_machine().toolchains()) ldid_tool.optional() @@ -51,6 +52,9 @@ mconfig.mark_safe_to_clean('(src)/generated/darwin-inject-asm.S', settings) if settings.enable_ios_bootstrap: mconfig.log('Will build iOS bootstrap.\n') +if settings.enable_werror: + for mach in machs + [settings.host_machine()]: + settings[mach.name].cflags = ['-Werror'] + settings[mach.name].cflags # todo make overridable? cc_argv = c.cc.argv() |