@@ -1698,7 +1698,6 @@ type IncrementalBuilder(tcGlobals, frameworkTcImports, nonFrameworkAssemblyInput
16981698/// CreateIncrementalBuilder (for background type checking). Note that fsc.fs also
16991699/// creates an incremental builder used by the command line compiler.
17001700static member TryCreateBackgroundBuilderForProjectOptions ( ctok , legacyReferenceResolver , defaultFSharpBinariesDir , frameworkTcImportsCache : FrameworkImportsCache , loadClosureOpt : LoadClosure option , sourceFiles : string list , commandLineArgs : string list , projectReferences , projectDirectory , useScriptResolutionRules , keepAssemblyContents , keepAllBackgroundResolutions , maxTimeShareMilliseconds ) =
1701- let targetProfileSwitch = " --targetprofile:"
17021701let useSimpleResolutionSwitch = " --simpleresolution"
17031702
17041703 cancellable{
@@ -1741,22 +1740,12 @@ type IncrementalBuilder(tcGlobals, frameworkTcImports, nonFrameworkAssemblyInput
17411740#else
17421741 tcConfigB.useSimpleResolution<- ( getSwitchValue useSimpleResolutionSwitch) |> Option.isSome
17431742#endif
1744- match ( getSwitchValue targetProfileSwitch) with
1745- | Some v->
1746- let _s = v
1747- CompileOptions.SetTargetProfile tcConfigB v
1748- | None-> ()
1749-
17501743// Apply command-line arguments and collect more source files if they are in the arguments
17511744let sourceFilesNew = ApplyCommandLineArgs( tcConfigB, sourceFiles, commandLineArgs)
17521745
17531746// Never open PDB files for the language service, even if --standalone is specified
17541747 tcConfigB.openDebugInformationForLaterStaticLinking<- false
1755- match commandLineArgs|> Seq.tryFind( fun s -> s.StartsWith( targetProfileSwitch)) with
1756- | Some arg->
1757- let profile = arg.Substring( targetProfileSwitch.Length)
1758- CompileOptions.SetTargetProfile tcConfigB profile
1759- | _ -> ()
1748+
17601749 tcConfigB, sourceFilesNew
17611750
17621751match loadClosureOptwith