Skip to content

Commit 0abf39c

Browse files
authored
Merge pull request #7223 from dotnet/merges/release/fsharp47-to-release/dev16.3
Merge release/fsharp47 to release/dev16.3
2 parents 30cce45 + b7d5efd commit 0abf39c

File tree

217 files changed

+4455
-2228
lines changed

Some content is hidden

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

217 files changed

+4455
-2228
lines changed

.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>

FSharpBuild.Directory.Build.props

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,10 @@
9393
<GenerateDocumentationFile>true</GenerateDocumentationFile>
9494
</PropertyGroup>
9595

96+
<PropertyGroup Condition="'$(OS)' == 'Unix'">
97+
<DefineConstants>$(DefineConstants);TESTING_ON_LINUX</DefineConstants>
98+
</PropertyGroup>
99+
96100
<!-- SDK targets override -->
97101
<PropertyGroup Condition="'$(Configuration)' != 'Proto' AND '$(DisableCompilerRedirection)'!='true' AND Exists('$(ProtoOutputPath)')">
98102
<FSharpTargetsPath>$(ProtoOutputPath)\fsc\Microsoft.FSharp.Targets</FSharpTargetsPath>

FSharpTests.Directory.Build.targets

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
DisabledWarnings="$(NoWarn)"
1414
DotnetFsiCompilerPath="$(DotnetFsiCompilerPath)"
1515
FsiExec="@(FsiExec)"
16+
LangVersion="$(LangVersion)"
1617
LCID="$(LCID)"
1718
LoadSources="@(LoadSource)"
1819
NoFramework="false"

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/Build.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,7 @@ function BuildSolution() {
195195
/p:QuietRestore=$quietRestore `
196196
/p:QuietRestoreBinaryLog=$binaryLog `
197197
/p:TestTargetFrameworks=$testTargetFrameworks `
198+
/v:$verbosity `
198199
$suppressExtensionDeployment `
199200
@properties
200201
}

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/build.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,7 @@ function BuildSolution {
246246
# do real build
247247
MSBuild $toolset_build_proj \
248248
$bl \
249+
/v:$verbosity \
249250
/p:Configuration=$configuration \
250251
/p:Projects="$projects" \
251252
/p:RepoRoot="$repo_root" \
@@ -277,3 +278,4 @@ if [[ "$test_core_clr" == true ]]; then
277278
fi
278279

279280
ExitWithExitCode 0
281+

eng/common/dotnet-install.sh

100644100755
File mode changed.

0 commit comments

Comments
 (0)