Skip to content

Commit

Permalink
fix #1031 handle NoWarn+TreatWarningsAsErrors well for F# compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
Jand42 committed Oct 24, 2018
1 parent d960785 commit 4f8bd4d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/compiler/WebSharper.Compiler.FSharp/Main.fs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ type WebSharperFSharpCompiler(logger, ?checker) =

TimedStage "Waiting on merged metadata"

if checkProjectResults.Errors |> Array.exists (fun e -> e.Severity = FSharpErrorSeverity.Error) then
if checkProjectResults.Errors |> Array.exists (fun e -> e.Severity = FSharpErrorSeverity.Error && not (this.WarnSettings.NoWarn.Contains e.ErrorNumber)) then
if assemblyName = "WebSharper.Main" || config.ProjectType = Some BundleOnly then
PrintFSharpErrors this.WarnSettings checkProjectResults.Errors
None
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
<WebSharperProject>Library</WebSharperProject>
<WebSharperUseNetFxCompiler>True</WebSharperUseNetFxCompiler>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<NoWarn>FS0864</NoWarn>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
</PropertyGroup>
<ItemGroup>
<Compile Include="BigInteger.fs" />
Expand Down

0 comments on commit 4f8bd4d

Please sign in to comment.