|
| 1 | +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 |
| 2 | +From: Ella Hathaway < [email protected]> |
| 3 | +Date: Wed, 9 Oct 2024 17:14:25 +0000 |
| 4 | +Subject: [PATCH] NoWarns for FSharp Failures |
| 5 | + |
| 6 | +Backport: https://github.com/dotnet/fsharp/pull/17859 |
| 7 | + |
| 8 | +--- |
| 9 | + buildtools/fslex/fslex.fsproj | 1 + |
| 10 | + buildtools/fsyacc/fsyacc.fsproj | 1 + |
| 11 | + src/Compiler/FSharp.Compiler.Service.fsproj | 2 ++ |
| 12 | + 3 files changed, 4 insertions(+) |
| 13 | + |
| 14 | +diff --git a/buildtools/fslex/fslex.fsproj b/buildtools/fslex/fslex.fsproj |
| 15 | +index 5dfef2f0e3..b450de1668 100644 |
| 16 | +--- a/buildtools/fslex/fslex.fsproj |
| 17 | ++++ b/buildtools/fslex/fslex.fsproj |
| 18 | +@@ -5,6 +5,7 @@ |
| 19 | + <TargetFramework>$(FSharpNetCoreProductTargetFramework)</TargetFramework> |
| 20 | + <DisableImplicitFSharpCoreReference>true</DisableImplicitFSharpCoreReference> |
| 21 | + <RollForward Condition="'$(BUILDING_USING_DOTNET)' == 'true'">LatestMajor</RollForward> |
| 22 | ++ <NoWarn>$(NoWarn);64;1182;1204</NoWarn> <!--Temporary fix for sourcebuild --> |
| 23 | + </PropertyGroup> |
| 24 | + |
| 25 | + <PropertyGroup> |
| 26 | +diff --git a/buildtools/fsyacc/fsyacc.fsproj b/buildtools/fsyacc/fsyacc.fsproj |
| 27 | +index 1ff8a11075..5f97b762e0 100644 |
| 28 | +--- a/buildtools/fsyacc/fsyacc.fsproj |
| 29 | ++++ b/buildtools/fsyacc/fsyacc.fsproj |
| 30 | +@@ -5,6 +5,7 @@ |
| 31 | + <TargetFramework>$(FSharpNetCoreProductTargetFramework)</TargetFramework> |
| 32 | + <DisableImplicitFSharpCoreReference>true</DisableImplicitFSharpCoreReference> |
| 33 | + <RollForward Condition="'$(BUILDING_USING_DOTNET)' == 'true'">LatestMajor</RollForward> |
| 34 | ++ <NoWarn>$(NoWarn);64;1182;1204</NoWarn> <!--Temporary fix for sourcebuild --> |
| 35 | + </PropertyGroup> |
| 36 | + |
| 37 | + <PropertyGroup> |
| 38 | +diff --git a/src/Compiler/FSharp.Compiler.Service.fsproj b/src/Compiler/FSharp.Compiler.Service.fsproj |
| 39 | +index 45b5bda0d1..8029bb6d45 100644 |
| 40 | +--- a/src/Compiler/FSharp.Compiler.Service.fsproj |
| 41 | ++++ b/src/Compiler/FSharp.Compiler.Service.fsproj |
| 42 | +@@ -10,6 +10,8 @@ |
| 43 | + <NoWarn>$(NoWarn);75</NoWarn> <!-- InternalCommandLineOption --> |
| 44 | + <NoWarn>$(NoWarn);1204</NoWarn> <!-- This construct is for use in the FSharp.Core library and should not be used directly --> |
| 45 | + <NoWarn>$(NoWarn);NU5125</NoWarn> |
| 46 | ++ <NoWarn>$(NoWarn);64;1182;1204</NoWarn> <!--Temporary fix for sourcebuild --> |
| 47 | ++ <OtherFlags>$(OtherFlags) --warnaserror-:1182</OtherFlags> <!--Temporary fix for sourcebuild --> |
| 48 | + <AssemblyName>FSharp.Compiler.Service</AssemblyName> |
| 49 | + <AllowCrossTargeting>true</AllowCrossTargeting> |
| 50 | + <DefineConstants>$(DefineConstants);COMPILER</DefineConstants> |
0 commit comments