Skip to content

Commit

Permalink
Use fsi command for unix platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
scitesy committed Aug 30, 2011
1 parent e7ee50d commit 140b8d1
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/app/FakeLib/FSIHelper.fs
Expand Up @@ -3,8 +3,11 @@ module Fake.FSIHelper

/// The Path to the F# interactive tool
let fsiPath =
let ev = environVar "FSI"
if not (isNullOrEmpty ev) then ev else findPath "FSIPath" "fsi.exe"
if System.Environment.OSVersion.Platform = System.PlatformID.Unix then
"fsi"
else
let ev = environVar "FSI"
if not (isNullOrEmpty ev) then ev else findPath "FSIPath" "fsi.exe"

/// Run the given buildscript with fsi.exe
let runBuildScript printDetails script args =
Expand All @@ -27,4 +30,4 @@ let runBuildScript printDetails script args =
setVar("FSI",fsiPath)) System.TimeSpan.MaxValue

System.Threading.Thread.Sleep 1000
result
result

0 comments on commit 140b8d1

Please sign in to comment.