Do not treat warnings as errors during corefx build in docker. (#23014)
authorSergey Andreenko <seandree@microsoft.com>
Tue, 5 Mar 2019 05:46:19 +0000 (21:46 -0800)
committerGitHub <noreply@github.com>
Tue, 5 Mar 2019 05:46:19 +0000 (21:46 -0800)
* Do not treat warnings as errors during corefx build in docker.

* Add a comment.

tests/scripts/run-corefx-tests.py

index 2dac80a..21ca3c2 100644 (file)
@@ -300,6 +300,10 @@ def main(args):
         # clang3.9, which is currently the default used by the native build.
         build_args += ' /p:BuildNativeClang=--clang5.0'
 
+    if not Is_windows and (arch == 'arm' or arch == 'arm64'):
+        # It is needed under docker where LC_ALL is not configured.
+        build_args += ' --warnAsError false'
+
     command = ' '.join(('build.cmd' if Is_windows else './build.sh', build_args))
     log(command)
     returncode = 0 if testing else os.system(command)