Skip to content

Commit 619d21c

Browse files
committed
overwrite the fallback folder for fsharp binary.
1 parent 89d936c commit 619d21c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/fsharp/fsi/fsi.fs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2358,6 +2358,9 @@ type FsiEvaluationSession (fsiConfig: FsiEvaluationSessionHostConfig, argv:strin
23582358
let defaultFSharpBinariesDir = System.AppDomain.CurrentDomain.BaseDirectory
23592359
let currentDirectory = Directory.GetCurrentDirectory()
23602360
#endif
2361+
// When used as part of FCS we cannot assume the current process is fsi.exe
2362+
// So we try to fallback to the default compiler dir.
2363+
let defaultFSharpBinariesDir = Internal.Utilities.FSharpEnvironment.BinFolderOfDefaultFSharpCompiler(None).Value
23612364

23622365
let tcConfigB = Build.TcConfigBuilder.CreateNew(defaultFSharpBinariesDir,
23632366
true, // long running: optimizeForMemory

0 commit comments

Comments
 (0)