Skip to content

Commit

Permalink
flags
Browse files Browse the repository at this point in the history
  • Loading branch information
Don Syme committed Jun 7, 2021
1 parent e5623a3 commit 5b2a011
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 12 deletions.
6 changes: 3 additions & 3 deletions src/fsharp/FSharp.Core/FSharp.Core.fsproj
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,9 @@
<!-- 3390: xmlDocBadlyFormed -->
<OtherFlags>$(OtherFlags) --warnon:3390</OtherFlags>
<!-- Turn off 57: Use of construct with Experimental attribute -->
<OtherFlags>$(OtherFlags) --nowarn:57</OtherFlags>
<!-- Turn off 3511: state machine not compilable - expected for inlined functions defining state machine generators -->
<!-- Turn off 3513: resumable code invocation' - expected for resumable code combinators -->
<OtherFlags>$(OtherFlags) --nowarn:3511 --nowarn:3513</OtherFlags>
<NoWarn>57;3511;3513</NoWarn>
<OtherFlags>$(OtherFlags) --compiling-fslib --compiling-fslib-40 --maxerrors:100 --extraoptimizationloops:1</OtherFlags>
<!-- preview needed for use of state machines for tasks -->
<LangVersion>preview</LangVersion>
Expand All @@ -34,7 +33,8 @@
<IsPackable>true</IsPackable>
<PackageDescription>FSharp.Core redistributables from F# Tools version $(FSCorePackageVersion) For F# $(FSLanguageVersion). Contains code from the F# Software Foundation.</PackageDescription>
<PackageReleaseNotes>/blob/main/release-notes.md#FSharp-Core-$(FSCoreReleaseNotesVersion)</PackageReleaseNotes>
</PropertyGroup>

</PropertyGroup>

<ItemGroup>
<EmbeddedResource Update="FSCore.resx">
Expand Down
7 changes: 3 additions & 4 deletions tests/benchmarks/MicroPerf/MicroPerf.fsproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,9 @@
<TargetFramework>net5.0</TargetFramework>
<OutputType>Exe</OutputType>
<DisableImplicitFSharpCoreReference>true</DisableImplicitFSharpCoreReference>
<!-- Turn off "This function is for use by compiled F# code and should not be used directly" -->
<OtherFlags>$(OtherFlags) --nowarn:1204</OtherFlags>
<!-- Turn off "Experimental" -->
<OtherFlags>$(OtherFlags) --nowarn:57</OtherFlags>
<!-- Turn off "57: experimental" -->
<!-- Turn off "1204: This function is for use by compiled F# code and should not be used directly" -->
<NoWarn>57;1204</NoWarn>
<OtherFlags>$(OtherFlags) --langversion:preview</OtherFlags>
<OtherFlags>$(OtherFlags) --define:PREVIEW</OtherFlags>

Expand Down
8 changes: 3 additions & 5 deletions tests/benchmarks/TaskPerf/TaskPerf.fsproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,11 @@
<TargetFramework>net5.0</TargetFramework>
<OutputType>Exe</OutputType>
<DisableImplicitFSharpCoreReference>true</DisableImplicitFSharpCoreReference>
<!-- Turn off "This function is for use by compiled F# code and should not be used directly" -->
<OtherFlags>$(OtherFlags) --nowarn:1204</OtherFlags>
<!-- Turn off "Experimental" -->
<OtherFlags>$(OtherFlags) --nowarn:57</OtherFlags>
<!-- Turn off "57: experimental" -->
<!-- Turn off "1204: This function is for use by compiled F# code and should not be used directly" -->
<!-- Turn off 3511: state machine not compilable - expected for inlined functions defining state machine generators -->
<!-- Turn off 3513: resumable code invocation' - expected for resumable code combinators -->
<OtherFlags>$(OtherFlags) --nowarn:3511 --nowarn:3513</OtherFlags>
<NoWarn>57;1204;3511;3513</NoWarn>
<OtherFlags>$(OtherFlags) --langversion:preview</OtherFlags>
<OtherFlags>$(OtherFlags) --define:PREVIEW</OtherFlags>
</PropertyGroup>
Expand Down

0 comments on commit 5b2a011

Please sign in to comment.