Permalink
Browse files

Merge pull request #121 from matthid/useRuntimeClrRoot

use ClrRoot of current RuntimeEnvironment instead of hardcoded 4.0 on mono
  • Loading branch information...
funnelweb committed Mar 29, 2013
2 parents 5276da1 + 60f0946 commit d603ceee1d755170dd932d4f9d9cfbb2afd012ea
Showing with 2 additions and 4 deletions.
  1. +2 −4 src/fsharp/build.fs
View
@@ -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 d603cee

Please sign in to comment.