Skip to content

Commit 9f336c9

Browse files
committed
WIP
1 parent 6e85994 commit 9f336c9

File tree

7 files changed

+36
-3
lines changed

7 files changed

+36
-3
lines changed

FSharp.sln

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,11 +101,14 @@ EndProject
101101
Project("{F2A71F9B-5D33-465A-A702-920D77279786}") = "HistoricalBenchmark", "tests\benchmarks\FCSBenchmarks\BenchmarkComparison\HistoricalBenchmark.fsproj", "{BEC6E796-7E53-4888-AAFC-B8FD55C425DF}"
102102
EndProject
103103
Project("{F2A71F9B-5D33-465A-A702-920D77279786}") = "FSharp.Compiler.Benchmarks", "tests\benchmarks\FCSBenchmarks\CompilerServiceBenchmarks\FSharp.Compiler.Benchmarks.fsproj", "{9C7523BA-7AB2-4604-A5FD-653E82C2BAD1}"
104+
EndProject
104105
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{D58BFE8B-7C85-4D3B-B5F3-9A7BB90FF1EE}"
105106
ProjectSection(SolutionItems) = preProject
106107
src\Compiler\FSComp.txt = src\Compiler\FSComp.txt
107108
EndProjectSection
108109
EndProject
110+
Project("{F2A71F9B-5D33-465A-A702-920D77279786}") = "FSharp.Compiler.Service.Tests2", "tests\FSharp.Compiler.Service.Tests2\FSharp.Compiler.Service.Tests2.fsproj", "{7F58653C-1B72-41C7-9A06-43CAAC3051B5}"
111+
EndProject
109112
Global
110113
GlobalSection(SolutionConfigurationPlatforms) = preSolution
111114
Debug|Any CPU = Debug|Any CPU
@@ -428,6 +431,18 @@ Global
428431
{9C7523BA-7AB2-4604-A5FD-653E82C2BAD1}.Release|Any CPU.Build.0 = Release|Any CPU
429432
{9C7523BA-7AB2-4604-A5FD-653E82C2BAD1}.Release|x86.ActiveCfg = Release|Any CPU
430433
{9C7523BA-7AB2-4604-A5FD-653E82C2BAD1}.Release|x86.Build.0 = Release|Any CPU
434+
{7F58653C-1B72-41C7-9A06-43CAAC3051B5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
435+
{7F58653C-1B72-41C7-9A06-43CAAC3051B5}.Debug|Any CPU.Build.0 = Debug|Any CPU
436+
{7F58653C-1B72-41C7-9A06-43CAAC3051B5}.Debug|x86.ActiveCfg = Debug|Any CPU
437+
{7F58653C-1B72-41C7-9A06-43CAAC3051B5}.Debug|x86.Build.0 = Debug|Any CPU
438+
{7F58653C-1B72-41C7-9A06-43CAAC3051B5}.Proto|Any CPU.ActiveCfg = Debug|Any CPU
439+
{7F58653C-1B72-41C7-9A06-43CAAC3051B5}.Proto|Any CPU.Build.0 = Debug|Any CPU
440+
{7F58653C-1B72-41C7-9A06-43CAAC3051B5}.Proto|x86.ActiveCfg = Debug|Any CPU
441+
{7F58653C-1B72-41C7-9A06-43CAAC3051B5}.Proto|x86.Build.0 = Debug|Any CPU
442+
{7F58653C-1B72-41C7-9A06-43CAAC3051B5}.Release|Any CPU.ActiveCfg = Release|Any CPU
443+
{7F58653C-1B72-41C7-9A06-43CAAC3051B5}.Release|Any CPU.Build.0 = Release|Any CPU
444+
{7F58653C-1B72-41C7-9A06-43CAAC3051B5}.Release|x86.ActiveCfg = Release|Any CPU
445+
{7F58653C-1B72-41C7-9A06-43CAAC3051B5}.Release|x86.Build.0 = Release|Any CPU
431446
EndGlobalSection
432447
GlobalSection(SolutionProperties) = preSolution
433448
HideSolutionNode = FALSE
@@ -460,6 +475,7 @@ Global
460475
{209C7D37-8C01-413C-8698-EC25F4C86976} = {B8DDA694-7939-42E3-95E5-265C2217C142}
461476
{BEC6E796-7E53-4888-AAFC-B8FD55C425DF} = {CE70D631-C5DC-417E-9CDA-B16097BEF1AC}
462477
{9C7523BA-7AB2-4604-A5FD-653E82C2BAD1} = {CE70D631-C5DC-417E-9CDA-B16097BEF1AC}
478+
{7F58653C-1B72-41C7-9A06-43CAAC3051B5} = {CFE3259A-2D30-4EB0-80D5-E8B5F3D01449}
463479
EndGlobalSection
464480
GlobalSection(ExtensibilityGlobals) = postSolution
465481
SolutionGuid = {BD5177C7-1380-40E7-94D2-7768E1A8B1B8}

src/fsc/fscArm64Project/fscArm64.fsproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88
<TargetExt>.exe</TargetExt>
99
<ExcludeFromSourceBuild>true</ExcludeFromSourceBuild>
1010
</PropertyGroup>
11+
12+
<ItemGroup>
13+
<InternalsVisibleTo Include="FSharp.Compiler.Service.Tests2" />
14+
</ItemGroup>
1115

1216
<Import Project="$([MSBuild]::GetPathOfFileAbove('fsc.targets', '$(MSBuildThisFileDirectory)../'))" />
1317

src/fsc/fscProject/fsc.fsproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@
1515
<PlatformTarget Condition="'$(TargetFramework)' == 'net472'">x86</PlatformTarget>
1616
</PropertyGroup>
1717

18+
<ItemGroup>
19+
<InternalsVisibleTo Include="FSharp.Compiler.Service.Tests2" />
20+
</ItemGroup>
21+
1822
<Import Project="$([MSBuild]::GetPathOfFileAbove('fsc.targets', '$(MSBuildThisFileDirectory)../'))" />
1923

2024
</Project>

tests/FSharp.Compiler.Service.Tests2/DepResolving.fs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ type ModuleSegment = string
4848

4949
type TrieNode =
5050
{
51-
// parent?
5251
// TODO Use ValueTuples if not already
5352
Children : IDictionary<ModuleSegment, TrieNode>
5453
mutable Reachable : bool

tests/FSharp.Compiler.Service.Tests2/FSharp.Compiler.Service.Tests2.fsproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
</Compile>
2929
<Compile Include="TypeTests.fs" />
3030
<Compile Include="DepResolving.fs" />
31+
<Compile Include="RunCompiler.fs" />
3132
<Compile Include="..\service\Program.fs">
3233
<Link>Program.fs</Link>
3334
</Compile>
@@ -43,6 +44,7 @@
4344
<PackageReference Include="Newtonsoft.Json" Version="$(NewtonsoftJsonVersion)" />
4445
<PackageReference Include="Buildalyzer" Version="4.1.2" />
4546
<ProjectReference Include="..\..\src\Compiler\FSharp.Compiler.Service.fsproj" />
47+
<ProjectReference Include="..\..\src\fsc\fscProject\fsc.fsproj" />
4648
<ProjectReference Include="..\..\tests\FSharp.Test.Utilities\FSharp.Test.Utilities.fsproj" />
4749
</ItemGroup>
4850

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
module FSharp.Compiler.Service.Tests.RunCompiler
2+
3+
open FSharp.Build
4+
5+
let runCompiler () =
6+
let args =
7+
System.IO.File.ReadAllLines(@"C:\projekty\fsharp\heuristic\tests\FSharp.Compiler.Service.Tests2\args.txt") |> Array.skip 1
8+
FSharp.Compiler.CommandLineMain.main args

tests/service/Program.fs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22

33
[<EntryPoint>]
44
let main argv =
5-
FSharp.Compiler.Service.Tests.DepResolving.Test()
6-
0
5+
//FSharp.Compiler.Service.Tests.DepResolving.Test()
6+
FSharp.Compiler.Service.Tests.RunCompiler.runCompiler()

0 commit comments

Comments
 (0)