Skip to content

Commit 3b4119f

Browse files
author
Omar Tawfik
committed
Remove OPEN_BUILD build flag
1 parent aab0002 commit 3b4119f

File tree

10 files changed

+6
-174
lines changed

10 files changed

+6
-174
lines changed

src/FSharpSource.targets

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,6 @@
119119
</PropertyGroup>
120120

121121
<PropertyGroup>
122-
<DefineConstants>$(DefineConstants);OPEN_BUILD</DefineConstants>
123122
<!-- Disable uwa toolchain nuget package resolve logic. -->
124123
<NuGetTargets Condition="'$(NuGetTargets)' == ''">false</NuGetTargets>
125124
</PropertyGroup>

src/fsharp/CompileOps.fs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2252,7 +2252,7 @@ type TcConfigBuilder =
22522252
lcid = None
22532253
#endif
22542254
// See bug 6071 for product banner spec
2255-
productNameForBannerText = (FSComp.SR.buildProductName(FSharpEnvironment.DotNetBuildString))
2255+
productNameForBannerText = (FSComp.SR.buildProductName(FSharpEnvironment.FSharpBannerVersion))
22562256
showBanner = true
22572257
showTimes = false
22582258
showLoadedAssemblies = false

src/fsharp/FSharp.Core.Unittests/FSharp.Core/Microsoft.FSharp.Control/AsyncModule.fs

Lines changed: 0 additions & 92 deletions
Original file line numberDiff line numberDiff line change
@@ -584,96 +584,4 @@ type AsyncModule() =
584584
Assert.AreEqual(0, !okCount)
585585
Assert.AreEqual(0, !errCount)
586586
#endif
587-
#endif
588-
589-
#if FSHARP_CORE_PORTABLE
590-
// nothing
591-
#else
592-
#if FSHARP_CORE_2_0
593-
// nothing
594-
#else
595-
#if FSHARP_CORE_NETCORE_PORTABLE || coreclr
596-
//nothing
597-
#else
598-
// we are on the desktop
599-
member this.RunExeAndExpectOutput(exeName, expected:string) =
600-
let curDir = (new Uri(System.Reflection.Assembly.GetExecutingAssembly().CodeBase)).LocalPath |> System.IO.Path.GetDirectoryName
601-
let psi = System.Diagnostics.ProcessStartInfo(exeName)
602-
psi.WorkingDirectory <- curDir
603-
psi.RedirectStandardOutput <- true
604-
psi.UseShellExecute <- false
605-
let p = System.Diagnostics.Process.Start(psi)
606-
let out = p.StandardOutput.ReadToEnd()
607-
p.WaitForExit()
608-
let out = out.Replace("\r\n", "\n")
609-
let expected = expected.Replace("\r\n", "\n")
610-
Assert.AreEqual(expected, out)
611-
#if OPEN_BUILD
612-
#else
613-
[<Test>]
614-
member this.``ContinuationsThreadingDetails.AsyncWithSyncContext``() =
615-
this.RunExeAndExpectOutput("AsyncWithSyncContext.exe", """
616-
EmptyParallel [|("ok", true); ("caught:boom", true)|]
617-
NonEmptyParallel [|("ok", true); ("form exception:boom", true)|]
618-
ParallelSeqArgumentThrows [|("error", true)|]
619-
Sleep1Return [|("ok", true); ("form exception:boom", true)|]
620-
Sleep0Return [|("ok", true); ("form exception:boom", true)|]
621-
Return [|("ok", true); ("caught:boom", true)|]
622-
FromContinuationsSuccess [|("ok", true); ("caught:boom", true)|]
623-
FromContinuationsError [|("error", true)|]
624-
FromContinuationsCancel [|("cancel", true)|]
625-
FromContinuationsThrows [|("error", true)|]
626-
FromContinuationsSchedulesFutureSuccess [|("ok", false); ("unhandled", false)|]
627-
FromContinuationsSchedulesFutureError [|("error", false)|]
628-
FromContinuationsSchedulesFutureCancel [|("cancel", false)|]
629-
FromContinuationsSchedulesFutureSuccessAndThrowsQuickly [|("error", true); ("unhandled", false)|]
630-
FromContinuationsSchedulesFutureErrorAndThrowsQuickly [|("error", true); ("unhandled", false)|]
631-
FromContinuationsSchedulesFutureCancelAndThrowsQuickly [|("error", true); ("unhandled", false)|]
632-
FromContinuationsSchedulesFutureSuccessAndThrowsSlowly [|("ok", false); ("unhandled", false);
633-
("caught:A continuation provided by Async.FromContinuations was invoked multiple times",
634-
true)|]
635-
FromContinuationsSchedulesFutureErrorAndThrowsSlowly [|("error", false);
636-
("caught:A continuation provided by Async.FromContinuations was invoked multiple times",
637-
true)|]
638-
FromContinuationsSchedulesFutureCancelAndThrowsSlowly [|("cancel", false);
639-
("caught:A continuation provided by Async.FromContinuations was invoked multiple times",
640-
true)|]
641-
AwaitWaitHandleAlreadySignaled0 [|("ok", true); ("caught:boom", true)|]
642-
AwaitWaitHandleAlreadySignaled1 [|("ok", true); ("form exception:boom", true)|]
643-
""" )
644-
[<Test>]
645-
member this.``ContinuationsThreadingDetails.AsyncSansSyncContext``() =
646-
this.RunExeAndExpectOutput("AsyncSansSyncContext.exe", """
647-
EmptyParallel [|("ok", true); ("caught:boom", true)|]
648-
NonEmptyParallel [|("ok", false); ("unhandled", false)|]
649-
ParallelSeqArgumentThrows [|("error", true)|]
650-
Sleep1Return [|("ok", false); ("unhandled", false)|]
651-
Sleep0Return [|("ok", false); ("unhandled", false)|]
652-
Return [|("ok", true); ("caught:boom", true)|]
653-
FromContinuationsSuccess [|("ok", true); ("caught:boom", true)|]
654-
FromContinuationsError [|("error", true)|]
655-
FromContinuationsCancel [|("cancel", true)|]
656-
FromContinuationsThrows [|("error", true)|]
657-
FromContinuationsSchedulesFutureSuccess [|("ok", false); ("unhandled", false)|]
658-
FromContinuationsSchedulesFutureError [|("error", false)|]
659-
FromContinuationsSchedulesFutureCancel [|("cancel", false)|]
660-
FromContinuationsSchedulesFutureSuccessAndThrowsQuickly [|("error", true); ("unhandled", false)|]
661-
FromContinuationsSchedulesFutureErrorAndThrowsQuickly [|("error", true); ("unhandled", false)|]
662-
FromContinuationsSchedulesFutureCancelAndThrowsQuickly [|("error", true); ("unhandled", false)|]
663-
FromContinuationsSchedulesFutureSuccessAndThrowsSlowly [|("ok", false); ("unhandled", false);
664-
("caught:A continuation provided by Async.FromContinuations was invoked multiple times",
665-
true)|]
666-
FromContinuationsSchedulesFutureErrorAndThrowsSlowly [|("error", false);
667-
("caught:A continuation provided by Async.FromContinuations was invoked multiple times",
668-
true)|]
669-
FromContinuationsSchedulesFutureCancelAndThrowsSlowly [|("cancel", false);
670-
("caught:A continuation provided by Async.FromContinuations was invoked multiple times",
671-
true)|]
672-
AwaitWaitHandleAlreadySignaled0 [|("ok", true); ("caught:boom", true)|]
673-
AwaitWaitHandleAlreadySignaled1 [|("ok", false); ("unhandled", false)|]
674-
""" )
675-
#endif
676-
677-
#endif
678-
#endif
679587
#endif

src/fsharp/FSharp.Core.Unittests/LibraryTestFx.fs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -126,12 +126,7 @@ module SurfaceArea =
126126

127127
// verify public surface area matches expected
128128
let verify expected platform fileName =
129-
let workDir =
130-
#if OPEN_BUILD
131-
TestContext.CurrentContext.WorkDirectory
132-
#else
133-
""
134-
#endif
129+
let workDir = TestContext.CurrentContext.WorkDirectory
135130
let logFile = sprintf "%s\\CoreUnit_%s_Xml.xml" workDir platform
136131
let normalize (s:string) =
137132
Regex.Replace(s, "(\\r\\n|\\n)+", "\r\n").Trim([|'\r';'\n'|])

src/fsharp/fsi/fsi.fs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2246,7 +2246,7 @@ type internal FsiEvaluationSession (argv:string[], inReader:TextReader, outWrite
22462246
do InstallErrorLoggingOnThisThread errorLogger // FSI error logging on main thread.
22472247

22482248
let updateBannerText() =
2249-
tcConfigB.productNameForBannerText <- FSIstrings.SR.fsiProductName(FSharpEnvironment.DotNetBuildString)
2249+
tcConfigB.productNameForBannerText <- FSIstrings.SR.fsiProductName(FSharpEnvironment.FSharpBannerVersion)
22502250

22512251
do updateBannerText() // setting the correct banner so that 'fsi -?' display the right thing
22522252

src/utils/CompilerLocationUtils.fs

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,7 @@ open System.Runtime.InteropServices
1212
module internal FSharpEnvironment =
1313

1414
/// The F# version reported in the banner
15-
#if OPEN_BUILD
16-
let DotNetBuildString = "(private)"
17-
#else
18-
/// The .NET runtime version that F# was built against (e.g. "v4.0.21104")
19-
let DotNetRuntime = sprintf "v%s.%s.%s" Microsoft.BuildSettings.Version.Major Microsoft.BuildSettings.Version.Minor Microsoft.BuildSettings.Version.ProductBuild
20-
21-
/// The .NET build string that F# was built against (e.g. "4.0.21104.0")
22-
let DotNetBuildString = Microsoft.BuildSettings.Version.OfFile
23-
#endif
15+
let FSharpBannerVersion = "4.1"
2416

2517
let versionOf<'t> =
2618
#if FX_RESHAPED_REFLECTION

vsintegration/src/FSharp.ProjectSystem.FSharp/Project.fs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,6 @@ namespace rec Microsoft.VisualStudio.FSharp.ProjectSystem
4040

4141
open EnvDTE
4242

43-
open Internal.Utilities.Debug
44-
4543
module internal VSHiveUtilities =
4644
/// For a given sub-hive, check to see if a 3rd party has specified any
4745
/// custom/extended property pages.

vsintegration/tests/unittests/Tests.BaseLine.fs

Lines changed: 0 additions & 57 deletions
This file was deleted.

vsintegration/tests/unittests/Tests.LanguageService.Script.fs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1237,16 +1237,14 @@ type UsingMSBuild() as this =
12371237
Assert.AreEqual(Path.Combine(projectFolder,"File1.fsx"), fas.ProjectFileNames.[0])
12381238
Assert.AreEqual(1, fas.ProjectFileNames.Length)
12391239

1240-
#if OPEN_BUILD
1241-
#else
12421240

12431241
/// FEATURE: #reference against a strong name should work.
12441242
[<Test>]
12451243
member public this.``Fsx.HashReferenceAgainstStrongName``() =
12461244
let code =
12471245
["#light"
12481246
#if FX_ATLEAST_40
1249-
sprintf "#reference \"System.Core, Version=%s, Culture=neutral, PublicKeyToken=b77a5c561934e089\"" Microsoft.BuildSettings.Version.OfAssembly
1247+
sprintf "#reference \"System.Core, Version=%s, Culture=neutral, PublicKeyToken=b77a5c561934e089\"" (System.Environment.Version.ToString())
12501248
#else
12511249
"#reference \"System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089\""
12521250
#endif
@@ -1255,7 +1253,7 @@ type UsingMSBuild() as this =
12551253
MoveCursorToEndOfMarker(file,"open System.")
12561254
let completions = AutoCompleteAtCursor file
12571255
AssertCompListContains(completions,"Linq")
1258-
#endif
1256+
12591257

12601258
/// Try out some bogus file names in #r, #I and #load.
12611259
[<Test>]

vsintegration/tests/unittests/VisualFSharp.Unittests.fsproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@
3535
<Compile Include="TestLib.ProjectSystem.fs" />
3636
<Compile Include="Tests.InternalCollections.fs" />
3737
<Compile Include="Tests.Build.fs" />
38-
<Compile Include="Tests.BaseLine.fs" />
3938
<Compile Include="Tests.TaskReporter.fs" />
4039
<Compile Include="Tests.Watson.fs" />
4140
<Compile Include="Tests.XmlDocComments.fs" />

0 commit comments

Comments
 (0)