Commit 37c60d82 authored by James Zern's avatar James Zern
Browse files 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
parent 4712be97
......@@ -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
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
close_tag ClCompile
case "$proj_kind" in
......@@ -689,6 +689,7 @@ process_toolchain() {
enabled werror && gen_vcproj_cmd="${gen_vcproj_cmd} --enable-werror"
all_targets="${all_targets} solution"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment