Permalink
Browse files

use ClrRoot of current RuntimeEnvironment instead of hardcoded 4.0 on…

… mono
  • Loading branch information...
1 parent 5276da1 commit 60f094603c15657174aac8f12ac1a6f065710134 @matthid matthid committed Mar 28, 2013
Showing with 2 additions and 4 deletions.
  1. +2 −4 src/fsharp/build.fs
View
6 src/fsharp/build.fs
@@ -2437,11 +2437,9 @@ type TcConfig private (data : TcConfigBuilder,validate:bool) =
[]
#else
// When running on Mono we lead everyone to believe we're doing .NET 4.0 compilation
- // by default.
+ // by default. Why? See https://github.com/fsharp/fsharp/issues/99
if runningOnMono then
- let sysDir = System.Runtime.InteropServices.RuntimeEnvironment.GetRuntimeDirectory()
- let mono40SysDir = Path.Combine(Path.GetDirectoryName sysDir, "4.0")
- [mono40SysDir]
+ [System.Runtime.InteropServices.RuntimeEnvironment.GetRuntimeDirectory()]
else
try
match tcConfig.resolutionEnvironment with

0 comments on commit 60f0946

Please sign in to comment.