Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use fsianycpu.exe instead of fsi.exe. #582

Merged
merged 3 commits into from
Nov 7, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 22 additions & 2 deletions build.fsx
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,22 @@ Target "SourceLink" (fun _ ->
)

Target "CreateNuGet" (fun _ ->
let set64BitCorFlags files =
files
|> Seq.iter (fun file ->
let args =
{ Program = "lib" @@ "corflags.exe"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this could be helpful in a separate FAKE helper

WorkingDirectory = directory file
CommandLine = "/32BIT- /32BITPREF- " + quoteIfNeeded file
Args = [] }
printfn "%A" args
shellExec args |> ignore)

let x64ify package =
{ package with
Dependencies = package.Dependencies |> List.map (fun (pkg, ver) -> pkg + ".x64", ver)
Project = package.Project + ".x64" }

for package,description in packages do
let nugetDocsDir = nugetDir @@ "docs"
let nugetToolsDir = nugetDir @@ "tools"
Expand All @@ -180,7 +196,7 @@ Target "CreateNuGet" (fun _ ->
CopyTo nugetToolsDir additionalFiles
!! (nugetToolsDir @@ "*.srcsv") |> DeleteFiles

NuGet (fun p ->
let setParams p =
{p with
Authors = authors
Project = package
Expand All @@ -194,7 +210,11 @@ Target "CreateNuGet" (fun _ ->
["FAKE.Core", RequireExactly (NormalizeVersion release.AssemblyVersion)]
else p.Dependencies)
AccessKey = getBuildParamOrDefault "nugetkey" ""
Publish = hasBuildParam "nugetkey" }) "fake.nuspec"
Publish = hasBuildParam "nugetkey" }

NuGet setParams "fake.nuspec"
!! (nugetToolsDir @@ "FAKE.exe") |> set64BitCorFlags
NuGet (setParams >> x64ify) "fake.nuspec"
)

Target "ReleaseDocs" (fun _ ->
Expand Down
Binary file added lib/CorFlags.exe
Binary file not shown.