Repository navigation
Coreclr build of fsharp.core #499
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
Closed
Closed
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
1b807ba
Initial cut at building FSharp.Core for coreclr
cb35249
Rename FX_NO_THREADPOOL FX_THREADPOOL because it was clearly misnamed.
f868485
Remove: <DefineConstants>$(DefineConstants);FX_USE_SYSTEMTYPECODE</De…
9b3191a
Tell appveyor to use the checked in nuget.config file
fe59317
Deal with review feedback. Get latest buildtools/and dnx packages
608af81
Add project.json and project.json.lock which I forgot to add in earlier.
4a472ec
index on coreclr: 608af81 Add project.json and project.json.lock whic…
ce79886
Use project.json & Project.json.locked for assembly references.
a9fc47c
Add script to build and deploy selected cambridge tests when built wi…
be2f9e7
Some PR feedback.
c179f18
Add missing utilities file. Update .net fx packages
4a04166
Make visible some coreclr build and execxution logging to ease diagno…
d203a73
select fx build 23217
c37c8b0
Fix dnu.cmd source specifications
4206a5d
restore framework types and add netfx dependencies to framework assem…
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,9 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <packages> | ||
| <package id="dnx-coreclr-win-x86" version="1.0.0-beta6-12032" /> | ||
| <package id="dnx-mono" version="1.0.0-beta5-12077" /> | ||
| <package id="Microsoft.DotNet.BuildTools" version="1.0.25-prerelease-00053" /> | ||
| <package id="NUnit" version="2.6.4" targetFramework="net40" /> | ||
| <package id="NUnit.Runners" version="2.6.4" /> | ||
| <package id="FSharp.Data" version="2.2.5" /> | ||
| </packages> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -7,7 +7,7 @@ | |
| <When Condition="'$(ProjectLanguage)' == 'FSharp'"> | ||
| <Choose> | ||
| <When Condition="'$(AssemblyName)' == 'FSharp.Core'"> | ||
| <PropertyGroup Condition="'$(TargetFramework)' == 'portable47' or '$(TargetFramework)' == 'portable7' or '$(TargetFramework)' == 'portable78' or '$(TargetFramework)' == 'portable259'"> | ||
| <PropertyGroup Condition="'$(TargetFramework)' == 'portable47' or '$(TargetFramework)' == 'portable7' or '$(TargetFramework)' == 'portable78' or '$(TargetFramework)' == 'portable259' or '$(TargetFramework)' == 'coreclr'"> | ||
| <IsPortableProfile>true</IsPortableProfile> | ||
| </PropertyGroup> | ||
| <PropertyGroup> | ||
|
|
@@ -17,6 +17,9 @@ | |
| <OtherFlags Condition="'$(TargetFramework)' == 'portable47'">$(OtherFlags) --version:3.47.4.9055</OtherFlags> | ||
| <OtherFlags Condition="'$(TargetFramework)' == 'portable78'">$(OtherFlags) --version:3.78.4.9055</OtherFlags> | ||
| <OtherFlags Condition="'$(TargetFramework)' == 'portable259'">$(OtherFlags) --version:3.259.4.9055</OtherFlags> | ||
|
|
||
| <!-- TBD: consider better version number than 3.999.4.40955 Ideally it should be 4.4.0.9055 and be the new f#.cor for both desktop and coreclr --> | ||
| <OtherFlags Condition="'$(TargetFramework)' == 'coreclr'">$(OtherFlags) --version:3.999.4.9055</OtherFlags> | ||
| <OtherFlags>$(OtherFlags) --delaysign+ --keyfile:"$(FSharpSourcesRoot)\fsharp\msft.pubkey"</OtherFlags> | ||
| <DefineConstants>STRONG_NAME_AND_DELAY_SIGN_FSHARP_COMPILER_WITH_MSFT_KEY;$(DefineConstants)</DefineConstants> | ||
| <StrongNames>true</StrongNames> | ||
|
|
@@ -139,6 +142,35 @@ | |
| <!-- MSbuild works out the assembly references --> | ||
| </PropertyGroup> | ||
|
|
||
| <PropertyGroup Condition="'$(TargetFramework)'=='coreclr'"> | ||
| <TargetFrameworkVersion>v4.5</TargetFrameworkVersion> | ||
| <DefineConstants>$(DefineConstants);FSHARP_CORE_4_5</DefineConstants> | ||
| <DefineConstants>$(DefineConstants);FX_NO_BEGINEND_READWRITE</DefineConstants> | ||
| <DefineConstants Condition="'$(Configuration)'!='Proto'">$(DefineConstants);FX_ATLEAST_45</DefineConstants> | ||
| <DefineConstants>$(DefineConstants);FX_ATLEAST_40</DefineConstants> | ||
| <DefineConstants>$(DefineConstants);FX_ATLEAST_35</DefineConstants> | ||
| <DefineConstants>$(DefineConstants);FX_ATLEAST_PORTABLE</DefineConstants> | ||
| <DefineConstants>$(DefineConstants);QUERIES_IN_FSLIB</DefineConstants> | ||
| <DefineConstants>$(DefineConstants);PUT_TYPE_PROVIDERS_IN_FSCORE;</DefineConstants> | ||
| <DefineConstants>$(DefineConstants);FX_ATLEAST_LINQ</DefineConstants> | ||
| <DefineConstants>$(DefineConstants);FX_RESHAPED_REFLECTION</DefineConstants> | ||
| <DefineConstants>$(DefineConstants);FX_NO_CONVERTER</DefineConstants> | ||
| <DefineConstants>$(DefineConstants);FX_NO_ARRAY_LONG_LENGTH</DefineConstants> | ||
| <DefineConstants>$(DefineConstants);FX_NO_EXIT</DefineConstants> | ||
| <DefineConstants>$(DefineConstants);FX_NO_DEFAULT_DEPENDENCY_TYPE</DefineConstants> | ||
| <DefineConstants>$(DefineConstants);FX_NO_BINARY_SERIALIZATION</DefineConstants> | ||
| <DefineConstants>$(DefineConstants);FX_NO_CUSTOMATTRIBUTEDATA</DefineConstants> | ||
| <DefineConstants>$(DefineConstants);FX_NO_REFLECTION_METADATA_TOKENS</DefineConstants> | ||
| <DefineConstants>$(DefineConstants);FX_NO_WEB_CLIENT</DefineConstants> | ||
| <DefineConstants>$(DefineConstants);FX_EVENTWAITHANDLE_NO_IDISPOSABLE</DefineConstants> | ||
| <DefineConstants>$(DefineConstants);FX_NO_EXIT_CONTEXT_FLAGS</DefineConstants> | ||
| <DefineConstants>$(DefineConstants);FX_NO_WAITONE_MILLISECONDS</DefineConstants> | ||
| <DefineConstants>$(DefineConstants);FX_NO_PARAMETERIZED_THREAD_START</DefineConstants> | ||
| <DefineConstants>$(DefineConstants);FX_NO_THREAD</DefineConstants> | ||
| <TargetFrameworkProfile>profile7</TargetFrameworkProfile> <!-- We are currently directly referencing corefx assemblies, so profile7 is not really true --> | ||
| <ImplicitlyExpandTargetFramework>false</ImplicitlyExpandTargetFramework> <!-- To stop msbuild being helpfull and referencing the dlls for the profile --> | ||
| </PropertyGroup> | ||
|
|
||
| <!-- Target Portable Profile 47 --> | ||
| <PropertyGroup Condition="'$(TargetFramework)'=='portable47'"> | ||
|
|
||
|
|
@@ -185,7 +217,6 @@ | |
| <DefineConstants>$(DefineConstants);FX_NO_EXCEPTIONDISPATCHINFO</DefineConstants> | ||
| <DefineConstants>$(DefineConstants);FX_ATLEAST_LINQ</DefineConstants> | ||
| <DefineConstants>$(DefineConstants);FX_NO_THREAD</DefineConstants> | ||
| <DefineConstants>$(DefineConstants);FX_NO_THREADPOOL</DefineConstants> | ||
| <DefineConstants>$(DefineConstants);FX_NO_WAITONE_MILLISECONDS</DefineConstants> | ||
| <DefineConstants>$(DefineConstants);FX_NO_TPL_PARALLEL</DefineConstants> | ||
| <DefineConstants>$(DefineConstants);PUT_TYPE_PROVIDERS_IN_FSCORE</DefineConstants> | ||
|
|
@@ -203,6 +234,7 @@ | |
| <DefineConstants>$(DefineConstants);QUERIES_IN_FSLIB</DefineConstants> | ||
| <DefineConstants>$(DefineConstants);FX_ATLEAST_35</DefineConstants> | ||
| <DefineConstants>$(DefineConstants);FX_ATLEAST_PORTABLE</DefineConstants> | ||
| <DefineConstants>$(DefineConstants);FX_NO_BEGINEND_READWRITE</DefineConstants> | ||
| <DefineConstants>$(DefineConstants);FX_NO_ARRAY_LONG_LENGTH</DefineConstants> | ||
| <DefineConstants>$(DefineConstants);FX_NO_EXIT</DefineConstants> | ||
| <DefineConstants>$(DefineConstants);FX_NO_CHAR_PARSE</DefineConstants> | ||
|
|
@@ -221,7 +253,6 @@ | |
| <DefineConstants>$(DefineConstants);FX_NO_REGISTERED_WAIT_HANDLES</DefineConstants> | ||
| <DefineConstants>$(DefineConstants);FX_ATLEAST_LINQ</DefineConstants> | ||
| <DefineConstants>$(DefineConstants);FX_NO_THREAD</DefineConstants> | ||
| <DefineConstants>$(DefineConstants);FX_NO_THREADPOOL</DefineConstants> | ||
| <DefineConstants>$(DefineConstants);PUT_TYPE_PROVIDERS_IN_FSCORE</DefineConstants> | ||
| <DefineConstants>$(DefineConstants);FX_NO_CUSTOMATTRIBUTEDATA</DefineConstants> | ||
| <DefineConstants>$(DefineConstants);FX_RESHAPED_REFLECTION</DefineConstants> | ||
|
|
@@ -237,6 +268,7 @@ | |
| <DefineConstants>$(DefineConstants);FSHARP_CORE_NETCORE_PORTABLE</DefineConstants> | ||
| <DefineConstants>$(DefineConstants);FSHARP_CORE_NETCORE_PORTABLE78</DefineConstants> | ||
| <DefineConstants>$(DefineConstants);QUERIES_IN_FSLIB</DefineConstants> | ||
| <DefineConstants>$(DefineConstants);FX_NO_BEGINEND_READWRITE</DefineConstants> | ||
| <DefineConstants>$(DefineConstants);FX_NO_CONVERTER</DefineConstants> | ||
| <DefineConstants>$(DefineConstants);FX_RESHAPED_REFLECTION</DefineConstants> | ||
| <DefineConstants>$(DefineConstants);FX_NO_ARRAY_LONG_LENGTH</DefineConstants> | ||
|
|
@@ -259,7 +291,6 @@ | |
| <DefineConstants>$(DefineConstants);FX_EVENTWAITHANDLE_NO_IDISPOSABLE</DefineConstants> | ||
| <DefineConstants>$(DefineConstants);FX_NO_EXIT_CONTEXT_FLAGS</DefineConstants> | ||
| <DefineConstants>$(DefineConstants);FX_NO_REGISTERED_WAIT_HANDLES</DefineConstants> | ||
| <DefineConstants>$(DefineConstants);FX_NO_THREADPOOL</DefineConstants> | ||
| <DefineConstants>$(DefineConstants);PUT_TYPE_PROVIDERS_IN_FSCORE</DefineConstants> | ||
| <DefineConstants>$(DefineConstants);FX_NO_CUSTOMATTRIBUTEDATA</DefineConstants> | ||
| <DefineConstants>$(DefineConstants);FX_NO_CONCURRENT_DICTIONARY</DefineConstants> | ||
|
|
@@ -272,6 +303,7 @@ | |
| <PropertyGroup Condition="'$(TargetFramework)'=='portable259'"> | ||
| <DefineConstants>$(DefineConstants);FSHARP_CORE_NETCORE_PORTABLE</DefineConstants> | ||
| <DefineConstants>$(DefineConstants);FSHARP_CORE_NETCORE_PORTABLE259</DefineConstants> | ||
| <DefineConstants>$(DefineConstants);FX_NO_BEGINEND_READWRITE</DefineConstants> | ||
| <DefineConstants>$(DefineConstants);QUERIES_IN_FSLIB</DefineConstants> | ||
| <DefineConstants>$(DefineConstants);FX_NO_CONVERTER</DefineConstants> | ||
| <DefineConstants>$(DefineConstants);FX_RESHAPED_REFLECTION</DefineConstants> | ||
|
|
@@ -295,7 +327,6 @@ | |
| <DefineConstants>$(DefineConstants);FX_EVENTWAITHANDLE_NO_IDISPOSABLE</DefineConstants> | ||
| <DefineConstants>$(DefineConstants);FX_NO_EXIT_CONTEXT_FLAGS</DefineConstants> | ||
| <DefineConstants>$(DefineConstants);FX_NO_REGISTERED_WAIT_HANDLES</DefineConstants> | ||
| <DefineConstants>$(DefineConstants);FX_NO_THREADPOOL</DefineConstants> | ||
| <DefineConstants>$(DefineConstants);PUT_TYPE_PROVIDERS_IN_FSCORE</DefineConstants> | ||
| <DefineConstants>$(DefineConstants);FX_NO_CUSTOMATTRIBUTEDATA</DefineConstants> | ||
| <DefineConstants>$(DefineConstants);FX_NO_CONCURRENT_DICTIONARY</DefineConstants> | ||
|
|
@@ -640,7 +671,7 @@ | |
| </PropertyGroup> | ||
|
|
||
| <Choose> | ||
| <When Condition="'$(TargetFramework)'=='portable47' OR '$(TargetFramework)'=='portable7' OR '$(TargetFramework)'=='portable78' OR '$(TargetFramework)'=='portable259'"> | ||
| <When Condition="'$(TargetFramework)'=='portable47' OR '$(TargetFramework)'=='portable7' OR '$(TargetFramework)'=='portable78' OR '$(TargetFramework)'=='portable259' OR '$(TargetFramework)'=='coreclr'"> | ||
| <PropertyGroup> | ||
| <FSharpTargetsPath>..\Proto\$(protoCLIDir)\bin\Microsoft.Portable.FSharp-proto.Targets</FSharpTargetsPath> | ||
| </PropertyGroup> | ||
|
|
@@ -683,6 +714,47 @@ | |
| </Choose> | ||
| <Import Condition="'$(ProjectLanguage)' == 'FSharp'" Project="$(FSharpTargetsPath)"/> | ||
|
|
||
| <!-- Hook up DNX to enable solution refresh of packages --> | ||
| <PropertyGroup Condition="'$(TargetFramework)'=='coreclr'"> | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. where are all of these properties used? |
||
|
|
||
| <NuGetPackagesPath Condition="'$(NuGetPackagesPath)' == ''">$(FSharpSourcesRoot)\..\packages</NuGetPackagesPath> | ||
|
|
||
| <!-- fix this to be not so unfortunate looking --> | ||
| <BuildToolsDir>$(MSBuildThisFileDirectory)..\packages\Microsoft.DotNet.BuildTools.1.0.25-prerelease-00053\lib\</BuildToolsDir> | ||
|
|
||
| <!-- Implicitly needed by packageresolve.targets. Should file a bug for a better error message here --> | ||
| <PackagesDir>$(NuGetPackagesPath)\</PackagesDir> | ||
|
|
||
| <DnxVersion Condition="'$(OsEnvironment)'!='Unix'">1.0.0-beta6-12032</DnxVersion> | ||
| <DnxVersion Condition="'$(OsEnvironment)'=='Unix'">1.0.0-beta5-12077</DnxVersion> | ||
| <DnxPackageName Condition="'$(DnxPackageName)' == '' and '$(OsEnvironment)'!='Unix'">dnx-coreclr-win-x86.$(DnxVersion)</DnxPackageName> | ||
| <DnxPackageName Condition="'$(DnxPackageName)' == '' and '$(OsEnvironment)'=='Unix'">dnx-mono.$(DnxVersion)</DnxPackageName> | ||
|
|
||
| <NuGetToolPath Condition="'$(NuGetToolPath)' == ''">$(FSharpSourcesRoot)\..\.nuget\</NuGetToolPath> | ||
| <NuGetConfigCommandLine>-ConfigFile "$(NuGetConfigFile)"</NuGetConfigCommandLine> | ||
|
|
||
| <NugetRestoreCommand>"$(NuGetToolPath)NuGet.exe"</NugetRestoreCommand> | ||
| <NugetRestoreCommand>$(NugetRestoreCommand) install</NugetRestoreCommand> | ||
| <NugetRestoreCommand>$(NugetRestoreCommand) -OutputDirectory "$(NuGetPackagesPath)"</NugetRestoreCommand> | ||
| <NugetRestoreCommand>$(NugetRestoreCommand) -Config "$(NuGetToolPath)NuGet.Config"</NugetRestoreCommand> | ||
|
|
||
| <DnxPackageDir Condition="'$(DnxPackageDir)'==''">$(NuGetPackagesPath)\$(DnxPackageName)/</DnxPackageDir> | ||
| <DnuToolPath Condition="'$(DnuToolPath)'=='' and '$(OS)' == 'Windows_NT'">$(DnxPackageDir)\bin\dnu.cmd</DnuToolPath> | ||
| <DnuToolPath Condition="'$(DnuToolPath)'=='' and '$(OS)' != 'Windows_NT'">$(DnxPackageDir)/bin/dnu</DnuToolPath> | ||
|
|
||
| <DnuRestoreCommand>"$(DnuToolPath)"</DnuRestoreCommand> | ||
| <DnuRestoreCommand>$(DnuRestoreCommand) restore</DnuRestoreCommand> | ||
| <DnuRestoreCommand>$(DnuRestoreCommand) --packages "$(PackagesDir.TrimEnd('/').TrimEnd('\\'))"</DnuRestoreCommand> | ||
| <DnuRestoreCommand>$(DnuRestoreCommand) -s:"https://www.myget.org/F/dotnet-core/"</DnuRestoreCommand> | ||
| <DnuRestoreCommand>$(DnuRestoreCommand) -s:"https://www.myget.org/F/dotnet-corefx/"</DnuRestoreCommand> | ||
| <DnuRestoreCommand>$(DnuRestoreCommand) -s:"https://www.myget.org/F/dotnet-buildtools"</DnuRestoreCommand> | ||
|
|
||
| <!-- Current version of DNX does not support all semantics used in our packages, | ||
| so we ignore the pre-calculation in the lock file and calculate asset applicability in the build task --> | ||
| <NuGetIngoreLockFile>true</NuGetIngoreLockFile> | ||
| </PropertyGroup> | ||
| <Import Condition="'$(TargetFramework)'=='coreclr'" Project="$(BuildToolsDir)Build.Common.Targets" /> | ||
|
|
||
| <!-- Reference an existing FSI.EXE for use from within MSBuild --> | ||
| <PropertyGroup> | ||
| <FsSrGenToolPath>$(FSharpSourcesRoot)\..\lkg\FSharp-$(LkgVersion)\bin</FsSrGenToolPath> | ||
|
|
@@ -706,9 +778,10 @@ | |
| Text="Configuration '$(Configuration)' is not one of the supported configurations: Debug, Release, Proto" | ||
| Condition="'$(Configuration)'!='Release' and '$(Configuration)'!='Debug' and '$(Configuration)'!='VSRelease' and '$(Configuration)'!='VSDebug' and '$(Configuration)'!='Proto'"/> | ||
| <Error | ||
| Text="TargetFramework '$(TargetFramework)' is not one of the supported configurations: 'empty', net20, net40, sl3-wp, sl5, sl5-compiler, portable47, portable7, portable78, portable259" | ||
| Text="TargetFramework '$(TargetFramework)' is not one of the supported configurations: 'empty', net20, net40, coreclr, sl3-wp, sl5, sl5-compiler, portable47, portable7, portable78, portable259" | ||
| Condition="! ('$(TargetFramework)' == 'net40' or | ||
| '$(TargetFramework)' == 'net20' or | ||
| '$(TargetFramework)' == 'coreclr' or | ||
| '$(TargetFramework)' == 'sl5' or | ||
| '$(TargetFramework)' == 'sl3-wp' or | ||
| '$(TargetFramework)' == 'portable47' or | ||
|
|
@@ -748,6 +821,6 @@ | |
| </ItemGroup> | ||
| </Target> | ||
| <Target Name="BeforeBuild" BeforeTargets="Build"> | ||
| <Exec Command=".\.nuget\NuGet.exe restore packages.config -PackagesDirectory packages" WorkingDirectory="$(FSharpSourcesRoot)\.."/> | ||
| <Exec Command=".\.nuget\NuGet.exe restore packages.config -PackagesDirectory packages -ConfigFile .\.nuget\NuGet.Config" WorkingDirectory="$(FSharpSourcesRoot)\.."/> | ||
| </Target> | ||
| </Project> | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's add CoreCLR build to AppVeyor
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes