Add support for not breaking *nix build on warnings (#12039)
authorOmair Majid <omair.majid@gmail.com>
Fri, 2 Jun 2017 20:55:14 +0000 (16:55 -0400)
committerJan Vorlicek <janvorli@microsoft.com>
Fri, 2 Jun 2017 20:55:14 +0000 (22:55 +0200)
commitf7ce37729328d4f1061bd8bb52e3eecb0e49486c
tree9a3022ffed67fcf666259cbaa59393814e38a122
parent23126aa5b7d6dc7b58301df7d0af1ccdf805224d
Add support for not breaking *nix build on warnings (#12039)

Add a build flag to make -Werror optional and let the build continue
even in the presence of warnings.

This option is very useful for anyone compiling with a different
(version of the) compiler. A different (version of the) compiler may
produce a different set of warnings and a piece of code that compiles
without warnings may emit warnings with a different (version of the)
compiler.

Resolves https://github.com/dotnet/coreclr/issues/8586
CMakeLists.txt
build.sh
compileoptions.cmake
src/CMakeLists.txt