Skip to content

Commit 21d2b38

Browse files
authored
Merge pull request #1411 from otawfik-ms/roslyn
Update branch from master
2 parents 75dd330 + 707f95a commit 21d2b38

File tree

443 files changed

+11214
-22990
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

443 files changed

+11214
-22990
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,3 +98,7 @@ ossreadme*.txt
9898
project.lock.json
9999
Tools/
100100
Backup/
101+
tests/fsharp/core/array/dont.run.peverify
102+
tests/fsharp/core/innerpoly/dont.run.peverify
103+
tests/fsharp/typecheck/sigs/neg94-pre.dll
104+
times

BuildToolsVersion.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.0.25-prerelease-00517-05
1+
1.0.26-prerelease-00625-01

DEVGUIDE.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,10 @@ There are various qualifiers:
3131
build.cmd debug -- build debug instead of release
3232

3333
build.cmd proto -- force the rebuild of the Proto bootstrap compiler in addition to other things
34+
build.cmd protofx -- build using a .NET Framework proto (no .NET Core is used)
3435

35-
build.cmd coreclr -- build/tests only the coreclr version compiler (not the Visual F# IDE Tools)
36-
build.cmd compiler -- build/tests only the compiler (not the Visual F# IDE Tools)
36+
build.cmd net40 -- build/tests for .NET Framework version of the compiler (not the Visual F# IDE Tools or .NET Core)
37+
build.cmd coreclr -- build/tests only the coreclr version compiler (not the Visual F# IDE Tools or .NET Framework)
3738
build.cmd vs -- build/tests the Visual F# IDE Tools
3839
build.cmd pcls -- build/tests the PCL FSharp.Core libraries
3940

@@ -44,7 +45,7 @@ There are various qualifiers:
4445

4546
build.cmd test-smoke -- build, run smoke tests
4647
build.cmd test-coreunit -- build, run FSharp.Core tests
47-
build.cmd test-coreclr -- build, run CoreCLR tests
48+
build.cmd test-coreclr -- build, run .NET Core tests
4849
build.cmd test-pcls -- build, run PCL tests
4950
build.cmd test-fsharp -- build, run tests\fsharp suite
5051
build.cmd test-fsharpqa -- build, run tests\fsharpqa suite

VisualFSharp.sln

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
Microsoft Visual Studio Solution File, Format Version 12.00
33
# Visual Studio 15
44
VisualStudioVersion = 15.0.25302.0
5+
# Visual Studio 14
6+
VisualStudioVersion = 14.0.25123.0
57
MinimumVisualStudioVersion = 10.0.40219.1
68
Project("{F2A71F9B-5D33-465A-A702-920D77279786}") = "FSharp.Compiler", "src\fsharp\FSharp.Compiler\FSharp.Compiler.fsproj", "{2E4D67B4-522D-4CF7-97E4-BA940F0B18F3}"
79
EndProject
@@ -100,8 +102,6 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NetCoreProject", "vsintegra
100102
EndProject
101103
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PortableLibraryProject", "vsintegration\ProjectTemplates\PortableLibraryProject\PortableLibraryProject.csproj", "{DB374A0C-7560-479F-9B21-D37C81F7624F}"
102104
EndProject
103-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SilverlightProject", "vsintegration\ProjectTemplates\SilverlightProject\SilverlightProject.csproj", "{15A57828-F9F5-4FB4-8E1E-AE7622A10F70}"
104-
EndProject
105105
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TutorialProject", "vsintegration\ProjectTemplates\TutorialProject\TutorialProject.csproj", "{2FACEE44-48BD-40B5-A2EE-B54A0C9BB7C4}"
106106
EndProject
107107
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "ItemTemplates", "ItemTemplates", "{F6DAEE9A-8BE1-4C4A-BC83-09215517C7DA}"
@@ -608,18 +608,6 @@ Global
608608
{DB374A0C-7560-479F-9B21-D37C81F7624F}.Release|Any CPU.Build.0 = Release|Any CPU
609609
{DB374A0C-7560-479F-9B21-D37C81F7624F}.Release|x86.ActiveCfg = Release|Any CPU
610610
{DB374A0C-7560-479F-9B21-D37C81F7624F}.Release|x86.Build.0 = Release|Any CPU
611-
{15A57828-F9F5-4FB4-8E1E-AE7622A10F70}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
612-
{15A57828-F9F5-4FB4-8E1E-AE7622A10F70}.Debug|Any CPU.Build.0 = Debug|Any CPU
613-
{15A57828-F9F5-4FB4-8E1E-AE7622A10F70}.Debug|x86.ActiveCfg = Debug|Any CPU
614-
{15A57828-F9F5-4FB4-8E1E-AE7622A10F70}.Debug|x86.Build.0 = Debug|Any CPU
615-
{15A57828-F9F5-4FB4-8E1E-AE7622A10F70}.Proto|Any CPU.ActiveCfg = Proto|Any CPU
616-
{15A57828-F9F5-4FB4-8E1E-AE7622A10F70}.Proto|Any CPU.Build.0 = Proto|Any CPU
617-
{15A57828-F9F5-4FB4-8E1E-AE7622A10F70}.Proto|x86.ActiveCfg = Proto|Any CPU
618-
{15A57828-F9F5-4FB4-8E1E-AE7622A10F70}.Proto|x86.Build.0 = Proto|Any CPU
619-
{15A57828-F9F5-4FB4-8E1E-AE7622A10F70}.Release|Any CPU.ActiveCfg = Release|Any CPU
620-
{15A57828-F9F5-4FB4-8E1E-AE7622A10F70}.Release|Any CPU.Build.0 = Release|Any CPU
621-
{15A57828-F9F5-4FB4-8E1E-AE7622A10F70}.Release|x86.ActiveCfg = Release|Any CPU
622-
{15A57828-F9F5-4FB4-8E1E-AE7622A10F70}.Release|x86.Build.0 = Release|Any CPU
623611
{2FACEE44-48BD-40B5-A2EE-B54A0C9BB7C4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
624612
{2FACEE44-48BD-40B5-A2EE-B54A0C9BB7C4}.Debug|Any CPU.Build.0 = Debug|Any CPU
625613
{2FACEE44-48BD-40B5-A2EE-B54A0C9BB7C4}.Debug|x86.ActiveCfg = Debug|Any CPU
@@ -787,7 +775,6 @@ Global
787775
{D9D95330-3626-4199-B7AF-17B8E4AF6D87} = {C9B1D3F5-4971-4F04-9C26-37E3AC809AB4}
788776
{5B739CF3-1116-4EB4-B598-6C16BEA81CE5} = {C9B1D3F5-4971-4F04-9C26-37E3AC809AB4}
789777
{DB374A0C-7560-479F-9B21-D37C81F7624F} = {C9B1D3F5-4971-4F04-9C26-37E3AC809AB4}
790-
{15A57828-F9F5-4FB4-8E1E-AE7622A10F70} = {C9B1D3F5-4971-4F04-9C26-37E3AC809AB4}
791778
{2FACEE44-48BD-40B5-A2EE-B54A0C9BB7C4} = {C9B1D3F5-4971-4F04-9C26-37E3AC809AB4}
792779
{F6DAEE9A-8BE1-4C4A-BC83-09215517C7DA} = {4C7B48D7-19AF-4AE7-9D1D-3BB289D5480D}
793780
{6BA13AA4-C25F-480F-856B-8E8000299A72} = {F6DAEE9A-8BE1-4C4A-BC83-09215517C7DA}

build.cmd

Lines changed: 31 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,26 @@ echo Build and run a subset of test suites
1313
echo.
1414
echo Usage:
1515
echo.
16-
echo build.cmd ^<all^|proto^|build^|debug^|release^|diag^|compiler^|coreclr^|pcls^|vs^|ci^|ci_part1^|ci_part2^|microbuild^>
16+
echo build.cmd ^<all^|proto^|protofx^|build^|debug^|release^|diag^|compiler^|coreclr^|pcls^|vs^|ci^|ci_part1^|ci_part2^|microbuild^>
17+
echo ^<test-coreunit^|test-corecompile^|test-smoke^|test-coreclr^|test-pcls^|test-fsharp^|test-fsharpqa^|test-vs^>
1718
echo.
18-
echo No arguments default to 'build'
19+
echo No arguments default to 'build'
1920
echo.
2021
echo To specify multiple values, separate strings by comma
2122
echo.
23+
echo.This builds the net40 build of the compiler without running tests
24+
echo.
25+
echo. build net40 notests
26+
echo.
2227
echo The example below run pcls, vs and qa:
2328
echo.
24-
echo build.cmd pcls,vs,debug
29+
echo build.cmd pcls,vs,debug
2530
exit /b 1
2631

2732
:ARGUMENTS_OK
2833

34+
set BUILD_PROTO_WITH_CORECLR_LKG=1
35+
2936
set BUILD_PROTO=0
3037
set BUILD_NET40=1
3138
set BUILD_CORECLR=0
@@ -100,6 +107,11 @@ if /i '%ARG%' == 'all' (
100107
set SKIP_EXPENSIVE_TESTS=0
101108
)
102109

110+
if /i '%ARG%' == 'protofx' (
111+
set BUILD_PROTO_WITH_CORECLR_LKG=0
112+
set BUILD_PROTO=1
113+
)
114+
103115
if /i '%ARG%' == 'microbuild' (
104116
set BUILD_PROTO=1
105117
set BUILD_NET40=1
@@ -257,6 +269,7 @@ REM after this point, ARG variable should not be used, use only BUILD_* or TEST_
257269
echo Build/Tests configuration:
258270
echo.
259271
echo BUILD_PROTO=%BUILD_PROTO%
272+
echo BUILD_PROTO_WITH_CORECLR_LKG=%BUILD_PROTO_WITH_CORECLR_LKG%
260273
echo BUILD_NET40=%BUILD_NET40%
261274
echo BUILD_CORECLR=%BUILD_CORECLR%
262275
echo BUILD_PORTABLE=%BUILD_PORTABLE%
@@ -327,34 +340,29 @@ if '%RestorePackages%' == 'true' (
327340
.\.nuget\NuGet.exe restore packages.config -PackagesDirectory packages -ConfigFile .nuget\nuget.config
328341
@if ERRORLEVEL 1 echo Error: Nuget restore failed && goto :failure
329342
)
343+
if '%BUILD_PROTO_WITH_CORECLR_LKG%' == '1' (
330344

331-
:: Restore the Tools directory
332-
call %~dp0init-tools.cmd
345+
:: Restore the Tools directory
346+
call %~dp0init-tools.cmd
347+
)
333348

334349
set _dotnetexe=%~dp0Tools\dotnetcli\dotnet.exe
335-
pushd .\lkg & %_dotnetexe% restore &popd
336-
@if ERRORLEVEL 1 echo Error: dotnet restore failed && goto :failure
337350

338-
pushd .\lkg & %_dotnetexe% publish project.json &popd
339-
@if ERRORLEVEL 1 echo Error: dotnet publish failed && goto :failure
351+
if '%BUILD_PROTO_WITH_CORECLR_LKG%' == '1' (
352+
353+
:: Restore the Tools directory
354+
call %~dp0init-tools.cmd
355+
356+
pushd .\lkg & %_dotnetexe% restore &popd
357+
@if ERRORLEVEL 1 echo Error: dotnet restore failed && goto :failure
340358

341-
rem rename fsc and coreconsole to allow fsc.exe to to start compiler
342-
pushd .\lkg\bin\debug\netstandard1.6\win7-x64\publish
343-
fc fsc.exe dotnet.exe >nul
344-
@if ERRORLEVEL 1 (
345-
copy fsc.exe fsc.dll
346-
copy dotnet.exe fsc.exe
359+
pushd .\lkg & %_dotnetexe% publish project.json -o %~dp0\Tools\lkg -r win7-x64 &popd
360+
@if ERRORLEVEL 1 echo Error: dotnet publish failed && goto :failure
347361
)
348-
popd
349362

350-
rem rename fsc and coreconsole to allow fsc.exe to to start compiler
351-
pushd .\lkg\bin\debug\netstandard1.6\win7-x64\publish
352-
fc fsi.exe dotnet.exe >nul
353-
@if ERRORLEVEL 1 (
354-
copy fsi.exe fsi.dll
355-
copy dotnet.exe fsi.exe
363+
if '%BUILD_PROTO_WITH_CORECLR_LKG%' == '0' (
364+
rmdir /s /q %~dp0\Tools\lkg
356365
)
357-
popd
358366

359367
rem copy targestfile into tools directory ... temporary fix until packaging complete.
360368
copy src\fsharp\FSharp.Build\Microsoft.FSharp.targets tools\Microsoft.FSharp.targets
-17.2 KB
Binary file not shown.
Binary file not shown.
-15.4 KB
Binary file not shown.
-67.2 KB
Binary file not shown.
51.7 KB
Binary file not shown.

0 commit comments

Comments
 (0)