Disable warnAsError from official builds to workaround cmake issue (#31890)
authorSantiago Fernandez Madero <safern@microsoft.com>
Thu, 6 Feb 2020 22:04:51 +0000 (14:04 -0800)
committerGitHub <noreply@github.com>
Thu, 6 Feb 2020 22:04:51 +0000 (14:04 -0800)
eng/pipelines/libraries/base-job.yml

index 85ea99f..9de712a 100644 (file)
@@ -102,6 +102,9 @@ jobs:
         # Windows variables
         - ${{ if eq(parameters.osGroup, 'Windows_NT') }}:
           - _runtimeOSArg: /p:RuntimeOS=win10
+          - ${{ if eq(parameters.isOfficialBuild, 'true') }}:
+            # Remove when: https://github.com/dotnet/runtime/issues/31888 is fixed.
+            - _warnAsErrorArg: -warnAsError:0
 
         # Non-Windows variables
         - ${{ if ne(parameters.osGroup, 'Windows_NT') }}: