Skip to content

Commit

Permalink
One more occasion
Browse files Browse the repository at this point in the history
  • Loading branch information
psfinaki committed Sep 13, 2022
1 parent 9b7b640 commit 60f5b6a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/Compiler/Facilities/DiagnosticsLogger.fs
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ let QuitProcessExiter =
member _.Exit n =
try
Environment.Exit n
raise StopProcessing
with _ ->
()

Expand Down
5 changes: 2 additions & 3 deletions src/Compiler/Legacy/LegacyHostedCompilerForTesting.fs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ namespace FSharp.Compiler.CodeAnalysis.Hosted
open System
open System.IO
open System.Text.RegularExpressions
open FSharp.Compiler
open FSharp.Compiler.Diagnostics
open FSharp.Compiler.Driver
open FSharp.Compiler.DiagnosticsLogger
Expand Down Expand Up @@ -97,9 +98,7 @@ type internal InProcCompiler(legacyReferenceResolver) =

let loggerProvider = InProcDiagnosticsLoggerProvider()
let mutable exitCode = 0
let exiter =
{ new Exiter with
member _.Exit n = exitCode <- n; raise StopProcessing }
let exiter = DiagnosticsLogger.QuitProcessExiter
try
CompileFromCommandLineArguments (
ctok, argv, legacyReferenceResolver,
Expand Down

0 comments on commit 60f5b6a

Please sign in to comment.