diff options
author | James Zern <jzern@google.com> | 2014-03-08 12:52:33 -0800 |
---|---|---|
committer | James Zern <jzern@google.com> | 2014-03-08 12:52:33 -0800 |
commit | 37c60d82c84c5b6abbd2450d3423b037b98e36f1 (patch) | |
tree | 354409fe6be366165b0b00f7da2658540dfc79b8 /build/make | |
parent | 4712be97febf0e33965eb387dd93c06453408758 (diff) | |
download | libvpx-37c60d82c84c5b6abbd2450d3423b037b98e36f1.tar libvpx-37c60d82c84c5b6abbd2450d3423b037b98e36f1.tar.gz libvpx-37c60d82c84c5b6abbd2450d3423b037b98e36f1.tar.bz2 libvpx-37c60d82c84c5b6abbd2450d3423b037b98e36f1.zip |
gen_msvs_vcxproj.sh: add --enable-werror option
translates to TreatWarningAsError (/WX)
setting this via the CL environment variable is not possible due to the
/WX- default which is used on the command line
Change-Id: I0b42a9d3ca9eba6af82c25b8e434baa2fcb00156
Diffstat (limited to 'build/make')
-rwxr-xr-x | build/make/gen_msvs_vcxproj.sh | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/build/make/gen_msvs_vcxproj.sh b/build/make/gen_msvs_vcxproj.sh index 4558aa1c1..7c8871ba2 100755 --- a/build/make/gen_msvs_vcxproj.sh +++ b/build/make/gen_msvs_vcxproj.sh @@ -28,6 +28,7 @@ Options: --lib Generate a project for creating a static library --dll Generate a project for creating a dll --static-crt Use the static C runtime (/MT) + --enable-werror Treat warnings as errors (/WX) --target=isa-os-cc Target specifier (required) --out=filename Write output to a file [stdout] --name=project_name Name of the project (required) @@ -233,6 +234,8 @@ for opt in "$@"; do ;; --static-crt) use_static_runtime=true ;; + --enable-werror) werror=true + ;; --ver=*) vs_ver="$optval" case "$optval" in @@ -492,7 +495,9 @@ generate_vcxproj() { tag_content PreprocessorDefinitions "WIN32;$debug;_CRT_SECURE_NO_WARNINGS;_CRT_SECURE_NO_DEPRECATE$extradefines;%(PreprocessorDefinitions)" tag_content RuntimeLibrary $runtime tag_content WarningLevel Level3 - # DebugInformationFormat + if ${werror:-false}; then + tag_content TreatWarningAsError true + fi close_tag ClCompile case "$proj_kind" in exe) |