Skip to content

Commit 818c627

Browse files
dsymeKevinRansom
authored andcommitted
update to FCT 4.1.5 (dotnet#2840)
* update to FCT 4.1.5 * better defaults for mono
1 parent 55ffe91 commit 818c627

File tree

7 files changed

+11
-17
lines changed

7 files changed

+11
-17
lines changed

before_install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ fi)
5858
fi)
5959

6060
#TODO: work out how to avoid the need for this
61-
chmod u+x packages/FSharp.Compiler.Tools.4.1.4/tools/fsi.exe
61+
chmod u+x packages/FSharp.Compiler.Tools.4.1.5/tools/fsi.exe
6262
chmod u+x packages/FsLexYacc.7.0.4/build/fslex.exe
6363
chmod u+x packages/FsLexYacc.7.0.4/build/fsyacc.exe
6464

build.cmd

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -523,7 +523,7 @@ if "%BUILD_PROTO_WITH_CORECLR_LKG%" == "1" (
523523
set _dotnetexe=%~dp0Tools\dotnetcli\dotnet.exe
524524
set NUGET_PACKAGES=%~dp0Packages
525525

526-
set _fsiexe="packages\FSharp.Compiler.Tools.4.1.4\tools\fsi.exe"
526+
set _fsiexe="packages\FSharp.Compiler.Tools.4.1.5\tools\fsi.exe"
527527
if not exist %_fsiexe% echo Error: Could not find %_fsiexe% && goto :failure
528528
%_ngenexe% install %_fsiexe% /nologo
529529

@@ -563,8 +563,8 @@ if "%BUILD_PROTO%" == "1" (
563563

564564
if "%BUILD_PROTO_WITH_CORECLR_LKG%" == "0" (
565565

566-
echo %_ngenexe% install packages\FSharp.Compiler.Tools.4.1.4\tools\fsc.exe /nologo
567-
%_ngenexe% install packages\FSharp.Compiler.Tools.4.1.4\tools\fsc.exe /nologo
566+
echo %_ngenexe% install packages\FSharp.Compiler.Tools.4.1.5\tools\fsc.exe /nologo
567+
%_ngenexe% install packages\FSharp.Compiler.Tools.4.1.5\tools\fsc.exe /nologo
568568

569569
echo %_msbuildexe% %msbuildflags% src\fsharp-proto-build.proj
570570
%_msbuildexe% %msbuildflags% src\fsharp-proto-build.proj

packages.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939

4040
<!-- FSharp.Compiler.Tools is only used to get a working FSI.EXE to execute some scripts during the build -->
4141
<!-- The LKG FSI.EXE requires MSBuild 15 to be installed, which is painful -->
42-
<package id="FSharp.Compiler.Tools" version="4.1.4"/>
42+
<package id="FSharp.Compiler.Tools" version="4.1.5"/>
4343

4444
<!-- FSharp.Data is used in some of the scripts ued for the coreclr build -->
4545
<package id="FSharp.Data" version="2.2.5" />

src/FSharpSource.Settings.targets

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@
138138

139139
<!-- FSharp.Compiler.Tools is currently only used to get a working FSI.EXE to execute some scripts during the build -->
140140
<!-- The LKG FSI.EXE requires MSBuild 15 to be installed, which is painful -->
141-
<FsiToolPath>$(FSharpSourcesRoot)\..\packages\FSharp.Compiler.Tools.4.1.4\tools</FsiToolPath>
141+
<FsiToolPath>$(FSharpSourcesRoot)\..\packages\FSharp.Compiler.Tools.4.1.5\tools</FsiToolPath>
142142
</PropertyGroup>
143143

144144
<Import Project="../Tools/Build.Common.props" Condition="'$(TargetFramework)'=='coreclr'"/>

src/FSharpSource.targets

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -376,9 +376,9 @@
376376
<PropertyGroup >
377377
<OutputPath>$(FSharpSourcesRoot)\..\$(Configuration)\$(ProtoFlavour)\bin</OutputPath>
378378
<!-- When using coreclr to bootstrap to proto. We acquire the FSharp.Core LKG, targets LKG, the FSharp.Build LKG from the .NET Framework compiler tools LKG package. -->
379-
<FSharpCoreLkgPath>$(FSharpSourcesRoot)\..\packages\FSharp.Compiler.Tools.4.1.4\tools</FSharpCoreLkgPath>
379+
<FSharpCoreLkgPath>$(FSharpSourcesRoot)\..\packages\FSharp.Compiler.Tools.4.1.5\tools</FSharpCoreLkgPath>
380380
<FSharpNetCoreLkgPath>$(FSharpSourcesRoot)\..\Tools\lkg</FSharpNetCoreLkgPath>
381-
<FSharpTargetsPath>..\packages\FSharp.Compiler.Tools.4.1.4\tools\Microsoft.FSharp.Targets</FSharpTargetsPath>
381+
<FSharpTargetsPath>..\packages\FSharp.Compiler.Tools.4.1.5\tools\Microsoft.FSharp.Targets</FSharpTargetsPath>
382382
<!-- When using coreclr to bootstrap, the compiler binary comes from the coreclr LKG, invoked using corehost.exe -->
383383
<FscToolPath>$(FSharpSourcesRoot)\..\Tools\dotnetcli</FscToolPath>
384384
<FscToolExe Condition="'$(OS)' != 'Unix'">dotnet.exe</FscToolExe>
@@ -390,8 +390,8 @@
390390
<!-- Use .NET Framework to bootstrap to proto -->
391391
<PropertyGroup >
392392
<OutputPath>$(FSharpSourcesRoot)\..\$(Configuration)\$(ProtoFlavour)\bin</OutputPath>
393-
<FSharpCoreLkgPath>$(FSharpSourcesRoot)\..\packages\FSharp.Compiler.Tools.4.1.4\tools</FSharpCoreLkgPath>
394-
<FSharpTargetsPath>..\packages\FSharp.Compiler.Tools.4.1.4\tools\Microsoft.FSharp.Targets</FSharpTargetsPath>
393+
<FSharpCoreLkgPath>$(FSharpSourcesRoot)\..\packages\FSharp.Compiler.Tools.4.1.5\tools</FSharpCoreLkgPath>
394+
<FSharpTargetsPath>..\packages\FSharp.Compiler.Tools.4.1.5\tools\Microsoft.FSharp.Targets</FSharpTargetsPath>
395395
</PropertyGroup>
396396
</When>
397397
<When Condition="'$(BuildWith)' == '' AND ('$(TargetFramework)'=='portable47' OR '$(TargetFramework)'=='portable7' OR '$(TargetFramework)'=='portable78' OR '$(TargetFramework)'=='portable259' OR '$(TargetFramework)'=='coreclr')">

src/fsharp/FSharp.Build/CreateFSharpManifestResourceName.fs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ type CreateFSharpManifestResourceName public () =
1717
(dependentUponFileName:string), (* may be null *)
1818
(binaryStream:System.IO.Stream) (* may be null *)) : string =
1919

20-
#if CROSS_PLATFORM_COMPILER
2120
// The Visual CSharp and XBuild CSharp toolchains transform resource names like this:
2221
// SubDir\abc.resx --> SubDir.abc.resources
2322
// SubDir\abc.txt --> SubDir.abc.txt
@@ -42,7 +41,6 @@ type CreateFSharpManifestResourceName public () =
4241
false
4342
let fileName = if not runningOnMono || fileName.EndsWith(".resources", StringComparison.OrdinalIgnoreCase) then fileName else Path.GetFileName(fileName)
4443
let linkFileName = if not runningOnMono || linkFileName.EndsWith(".resources", StringComparison.OrdinalIgnoreCase) then linkFileName else Path.GetFileName(linkFileName)
45-
#endif
4644

4745
let embeddedFileName =
4846
match linkFileName with

src/fsharp/fsi/fsi.fs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -581,11 +581,7 @@ type internal FsiCommandLineOptions(fsi: FsiEvaluationSessionHostConfig, argv: s
581581
not (runningOnMono && System.Environment.OSVersion.Platform = System.PlatformID.Win32NT)
582582
#endif
583583
// In the cross-platform edition of F#, 'gui' support is currently off by default
584-
#if CROSS_PLATFORM_COMPILER
585-
let mutable gui = false // override via "--gui", off by default
586-
#else
587-
let mutable gui = true // override via "--gui", on by default
588-
#endif
584+
let mutable gui = not runningOnMono // override via "--gui", on by default
589585
#if DEBUG
590586
let mutable showILCode = false // show modul il code
591587
#endif

0 commit comments

Comments
 (0)