File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed
Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -2770,10 +2770,17 @@ type TcConfig private (data : TcConfigBuilder,validate:bool) =
27702770 [ tcConfig.MakePathAbsolute x]
27712771 | None ->
27722772#if ENABLE_ MONO_ SUPPORT
2773- // When running on Mono we lead everyone to believe we're doing .NET 4.0 compilation
2774- // by default. Why? See https://github.com/fsharp/fsharp/issues/99
27752773 if runningOnMono then
2776- [ System.Runtime.InteropServices.RuntimeEnvironment.GetRuntimeDirectory()]
2774+ [ let runtimeRoot = System.Runtime.InteropServices.RuntimeEnvironment.GetRuntimeDirectory()
2775+ let runtimeRootWithoutSlash = runtimeRoot.TrimEnd( '/' , '\\' )
2776+ let api = runtimeRootWithoutSlash + " -api"
2777+ if Directory.Exists( api) then
2778+ yield api
2779+ let apiFacades = Path.Combine( api, " Facades" )
2780+ if Directory.Exists( apiFacades) then
2781+ yield apiFacades
2782+ yield runtimeRoot
2783+ ]
27772784 else
27782785#endif
27792786 try
You can’t perform that action at this time.
0 commit comments