@@ -35,12 +35,9 @@ open Microsoft.FSharp.Compiler.IlxGen
35
35
module Attributes =
36
36
open System.Runtime .CompilerServices
37
37
38
- #if SILVERLIGHT
39
- #else
40
38
//[<assembly: System.Security.SecurityTransparent>]
41
39
[<Dependency( " FSharp.Core" , LoadHint.Always) >]
42
40
do ()
43
- #endif
44
41
45
42
//----------------------------------------------------------------------------
46
43
// Compiler option parser
@@ -753,10 +750,7 @@ let internalFlags (tcConfigB:TcConfigBuilder) =
753
750
[
754
751
CompilerOption( " use-incremental-build" , tagNone, OptionUnit ( fun () -> tcConfigB.useIncrementalBuilder <- true ), None, None)
755
752
CompilerOption( " stamps" , tagNone, OptionUnit ( fun () -> ()), Some( InternalCommandLineOption( " --stamps" , rangeCmdArgs)), None);
756
- #if SILVERLIGHT
757
- #else
758
753
CompilerOption( " ranges" , tagNone, OptionSet Tastops.DebugPrint.layoutRanges, Some( InternalCommandLineOption( " --ranges" , rangeCmdArgs)), None);
759
- #endif
760
754
CompilerOption( " terms" , tagNone, OptionUnit ( fun () -> tcConfigB.showTerms <- true ), Some( InternalCommandLineOption( " --terms" , rangeCmdArgs)), None);
761
755
CompilerOption( " termsfile" , tagNone, OptionUnit ( fun () -> tcConfigB.writeTermsToFiles <- true ), Some( InternalCommandLineOption( " --termsfile" , rangeCmdArgs)), None);
762
756
CompilerOption( " use-incremental-build" , tagNone, OptionUnit ( fun () -> tcConfigB.useIncrementalBuilder <- true ), None, None)
@@ -878,10 +872,7 @@ let DisplayBannerText tcConfigB =
878
872
let displayHelpFsc tcConfigB ( blocks : CompilerOptionBlock list ) =
879
873
DisplayBannerText tcConfigB;
880
874
PrintCompilerOptionBlocks blocks
881
- #if SILVERLIGHT
882
- #else
883
875
exit 0
884
- #endif
885
876
886
877
let miscFlagsBoth tcConfigB =
887
878
[ CompilerOption( " nologo" , tagNone, OptionUnit ( fun () -> tcConfigB.showBanner <- false ), None, Some ( FSComp.SR.optsNologo()));
@@ -1080,18 +1071,13 @@ let ReportTime (tcConfig:TcConfig) descr =
1080
1071
| Some( " fsc-ma" ) -> raise( System.MemberAccessException())
1081
1072
| Some( " fsc-ni" ) -> raise( System.NotImplementedException())
1082
1073
| Some( " fsc-nr" ) -> raise( System.NullReferenceException())
1083
- #if SILVERLIGHT
1084
- #else
1085
1074
| Some( " fsc-oc" ) -> raise( System.OperationCanceledException())
1086
- #endif
1087
1075
| Some( " fsc-fail" ) -> failwith " simulated"
1088
1076
| _ -> ()
1089
1077
1090
1078
1091
1079
1092
1080
1093
- #if SILVERLIGHT
1094
- #else
1095
1081
if ( tcConfig.showTimes || verbose) then
1096
1082
// Note that timing calls are relatively expensive on the startup path so we don't
1097
1083
// make this call unless showTimes has been turned on.
@@ -1113,7 +1099,6 @@ let ReportTime (tcConfig:TcConfig) descr =
1113
1099
1114
1100
| _ -> ()
1115
1101
tPrev := Some ( timeNow, gcNow)
1116
- #endif
1117
1102
1118
1103
nPrev := Some descr
1119
1104
0 commit comments