Skip to content

Commit 7891cbd

Browse files
authored
Merge branch 'release/fsharp47' into merges/release/dev16.3-to-release/fsharp47
2 parents d51ae07 + 8b66074 commit 7891cbd

160 files changed

Lines changed: 1990 additions & 1738 deletions

File tree

Some content is hidden

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

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,9 @@ ossreadme*.txt
100100
*.log
101101
*.jrs
102102
*.chk
103-
*.bak
103+
*.bak
104+
*.vserr
105+
*.err
104106
*.orig
105107
*.mdf
106108
*.ldf

DEVGUIDE.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,17 @@ After you build the first time you can open and use this solution in Visual Stud
5353

5454
If you don't have everything installed yet, you'll get prompted by Visual Studio to install a few more things. This is because we use a `.vsconfig` file that specifies all our dependencies.
5555

56-
## Developing on Windows - No Visual Studio
56+
If you are just developing the core compiler and library then building ``FSharp.sln`` will be enough.
57+
58+
### Developing the F# Compiler (Linux/macOS)
59+
60+
For Linux/Mac:
61+
62+
./build.sh
63+
64+
Running tests:
65+
66+
./build.sh --test
5767

5868
We recommend installing the latest released Visual Studio and using that if you are on Windows. However, if you prefer not to do that, you will need to install the following:
5969

FSharp.Profiles.props

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -5,43 +5,22 @@
55
<PropertyGroup Condition="$(TargetFramework.StartsWith('net4'))">
66
<DefineConstants Condition="'$(MonoPackaging)' == 'true'">$(DefineConstants);CROSS_PLATFORM_COMPILER</DefineConstants>
77
<DefineConstants>$(DefineConstants);ENABLE_MONO_SUPPORT</DefineConstants>
8-
<DefineConstants>$(DefineConstants);BE_SECURITY_TRANSPARENT</DefineConstants>
98
<DefineConstants>$(DefineConstants);FX_LCIDFROMCODEPAGE</DefineConstants>
109
</PropertyGroup>
1110

1211
<PropertyGroup Condition="$(TargetFramework.StartsWith('netstandard')) OR $(TargetFramework.StartsWith('netcoreapp'))">
1312
<DefineConstants>$(DefineConstants);NETSTANDARD</DefineConstants>
1413
<DefineConstants>$(DefineConstants);FX_NO_APP_DOMAINS</DefineConstants>
15-
<DefineConstants>$(DefineConstants);FX_NO_ARRAY_LONG_LENGTH</DefineConstants>
16-
<DefineConstants>$(DefineConstants);FX_NO_BEGINEND_READWRITE</DefineConstants>
17-
<DefineConstants>$(DefineConstants);FX_NO_BINARY_SERIALIZATION</DefineConstants>
18-
<DefineConstants>$(DefineConstants);FX_NO_CONVERTER</DefineConstants>
19-
<DefineConstants>$(DefineConstants);FX_NO_DEFAULT_DEPENDENCY_TYPE</DefineConstants>
2014
<DefineConstants>$(DefineConstants);FX_NO_CORHOST_SIGNER</DefineConstants>
21-
<DefineConstants>$(DefineConstants);FX_NO_EVENTWAITHANDLE_IDISPOSABLE</DefineConstants>
22-
<DefineConstants>$(DefineConstants);FX_NO_EXIT_CONTEXT_FLAGS</DefineConstants>
2315
<DefineConstants>$(DefineConstants);FX_NO_LINKEDRESOURCES</DefineConstants>
24-
<DefineConstants>$(DefineConstants);FX_NO_PARAMETERIZED_THREAD_START</DefineConstants>
2516
<DefineConstants>$(DefineConstants);FX_NO_PDB_READER</DefineConstants>
2617
<DefineConstants>$(DefineConstants);FX_NO_PDB_WRITER</DefineConstants>
27-
<DefineConstants>$(DefineConstants);FX_NO_REFLECTION_MODULE_HANDLES</DefineConstants>
28-
<DefineConstants>$(DefineConstants);FX_NO_REFLECTION_ONLY</DefineConstants>
29-
<DefineConstants>$(DefineConstants);FX_NO_RUNTIMEENVIRONMENT</DefineConstants>
30-
<DefineConstants>$(DefineConstants);FX_NO_SECURITY_PERMISSIONS</DefineConstants>
31-
<DefineConstants>$(DefineConstants);FX_NO_SERVERCODEPAGES</DefineConstants>
3218
<DefineConstants>$(DefineConstants);FX_NO_SYMBOLSTORE</DefineConstants>
3319
<DefineConstants>$(DefineConstants);FX_NO_SYSTEM_CONFIGURATION</DefineConstants>
34-
<DefineConstants>$(DefineConstants);FX_NO_THREAD</DefineConstants>
35-
<DefineConstants>$(DefineConstants);FX_NO_THREADABORT</DefineConstants>
36-
<DefineConstants>$(DefineConstants);FX_NO_WAITONE_MILLISECONDS</DefineConstants>
37-
<DefineConstants>$(DefineConstants);FX_NO_WEB_CLIENT</DefineConstants>
3820
<DefineConstants>$(DefineConstants);FX_NO_WIN_REGISTRY</DefineConstants>
3921
<DefineConstants>$(DefineConstants);FX_NO_WINFORMS</DefineConstants>
4022
<DefineConstants>$(DefineConstants);FX_NO_INDENTED_TEXT_WRITER</DefineConstants>
41-
<DefineConstants>$(DefineConstants);FX_REDUCED_EXCEPTIONS</DefineConstants>
4223
<DefineConstants>$(DefineConstants);FX_RESHAPED_REFEMIT</DefineConstants>
43-
<DefineConstants>$(DefineConstants);FX_RESHAPED_GLOBALIZATION</DefineConstants>
44-
<DefineConstants>$(DefineConstants);FX_RESHAPED_REFLECTION</DefineConstants>
4524
<DefineConstants>$(DefineConstants);FX_RESHAPED_MSBUILD</DefineConstants>
4625
<OtherFlags>$(OtherFlags) --simpleresolution</OtherFlags>
4726
</PropertyGroup>

FSharpTests.Directory.Build.props

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@
1616
<DotnetFsiCompilerPath></DotnetFsiCompilerPath>
1717
</PropertyGroup>
1818

19+
<PropertyGroup Condition="'$(OS)' == 'Unix'">
20+
<DefineConstants>($(DefineConstants);TESTING_ON_LINUX</DefineConstants>
21+
</PropertyGroup>
22+
1923
<PropertyGroup Condition="'$(FSharpTestCompilerVersion)' == 'coreclr'">
2024
<DisableAutoSetFscCompilerPath>true</DisableAutoSetFscCompilerPath>
2125

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ restore:
2929

3030
build: proto restore
3131
$(DotNetExe) build-server shutdown
32-
$(DotNetExe) build -c $(Configuration) -f netstandard1.6 src/fsharp/FSharp.Core/FSharp.Core.fsproj
32+
$(DotNetExe) build -c $(Configuration) -f netstandard2.0 src/fsharp/FSharp.Core/FSharp.Core.fsproj
3333
$(DotNetExe) build -c $(Configuration) -f netstandard2.0 src/fsharp/FSharp.Build/FSharp.Build.fsproj
3434
$(DotNetExe) build -c $(Configuration) -f netstandard2.0 src/fsharp/FSharp.Compiler.Private/FSharp.Compiler.Private.fsproj
3535
$(DotNetExe) build -c $(Configuration) -f netcoreapp2.1 src/fsharp/fsc/fsc.fsproj

eng/Versions.props

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<!-- Version number computation -->
1313
<PropertyGroup>
1414
<PreReleaseVersionLabel>beta</PreReleaseVersionLabel>
15-
<FSLanguageVersion>4.6</FSLanguageVersion>
15+
<FSLanguageVersion>4.7</FSLanguageVersion>
1616
<FSCoreMajorVersion>$(FSLanguageVersion)</FSCoreMajorVersion>
1717
<FSCorePackageVersion>$(FSCoreMajorVersion).3</FSCorePackageVersion>
1818
<FSCoreVersionPrefix>$(FSCoreMajorVersion).0</FSCoreVersionPrefix>
@@ -55,7 +55,6 @@
5555
https://dotnet.myget.org/F/roslyn-tools/api/v3/index.json;
5656
https://api.nuget.org/v3/index.json;
5757
https://dotnet.myget.org/F/roslyn/api/v3/index.json;
58-
https://dotnet.myget.org/F/roslyn-analyzers/api/v3/index.json;
5958
https://dotnet.myget.org/F/symreader-converter/api/v3/index.json;
6059
https://dotnet.myget.org/F/interactive-window/api/v3/index.json;
6160
https://myget.org/F/vs-devcore/api/v3/index.json;

eng/common/templates/job/publish-build-assets.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ jobs:
5757
/p:MaestroApiEndpoint=https://maestro-prod.westus2.cloudapp.azure.com
5858
/p:PublishUsingPipelines=${{ parameters.publishUsingPipelines }}
5959
/p:Configuration=$(_BuildConfig)
60+
/v:detailed
6061
condition: ${{ parameters.condition }}
6162
continueOnError: ${{ parameters.continueOnError }}
6263
- task: powershell@2

eng/common/templates/post-build/channels/public-dev-release.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,6 @@ stages:
111111
-PersonalAccessToken $(dn-bot-dnceng-unviersal-packages-rw)
112112
enabled: false
113113

114-
115114
- stage: PublishValidation
116115
displayName: Publish Validation
117116
variables:

eng/common/tools.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -356,6 +356,8 @@ function MSBuild-Core {
356356
}
357357
}
358358

359+
. "$scriptroot/pipeline-logging-functions.sh"
360+
359361
ResolvePath "${BASH_SOURCE[0]}"
360362
_script_dir=`dirname "$_ResolvePath"`
361363

fcs/FSharp.Compiler.Service.Tests/FSharp.Compiler.Service.Tests.fsproj

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,9 @@
1212
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies> <!-- Tests won't run without this, at least on OSX, see https://github.com/NuGet/Home/issues/4837#issuecomment-354536302 -->
1313
</PropertyGroup>
1414
<PropertyGroup Condition="'$(TargetFramework)' == 'netcoreapp2.0'">
15-
<DefineConstants>$(DefineConstants);FX_NO_RUNTIMEENVIRONMENT</DefineConstants>
1615
<DefineConstants>$(DefineConstants);NO_PROJECTCRACKER</DefineConstants>
1716
</PropertyGroup>
1817
<ItemGroup>
19-
<Compile Include="$(FSharpSourcesRoot)\..\tests\service\ReshapedReflection.fs">
20-
<Link>ReshapedReflection.fs</Link>
21-
</Compile>
2218
<Compile Include="$(FSharpSourcesRoot)\..\tests\service\FsUnit.fs">
2319
<Link>FsUnit.fs</Link>
2420
</Compile>

0 commit comments

Comments
 (0)