@@ -739,10 +739,8 @@ let codePageFlag (tcConfigB : TcConfigBuilder) =
739739 tcConfigB.inputCodePage <- Some( n)), None,
740740 Some ( FSComp.SR.optsCodepage()))
741741
742- #if PREFERRED_ UI_ LANG
743742let preferredUiLang ( tcConfigB : TcConfigBuilder ) =
744743 CompilerOption( " preferreduilang" , tagString, OptionString ( fun s -> tcConfigB.preferredUiLang <- Some( s)), None, Some( FSComp.SR.optsPreferredUiLang()))
745- #endif
746744
747745let utf8OutputFlag ( tcConfigB : TcConfigBuilder ) =
748746 CompilerOption( " utf8output" , tagNone, OptionUnit ( fun () -> tcConfigB.utf8output <- true ), None,
@@ -771,9 +769,7 @@ let advancedFlagsBoth tcConfigB =
771769 [
772770 yield codePageFlag tcConfigB
773771 yield utf8OutputFlag tcConfigB
774- #if PREFERRED_ UI_ LANG
775772 yield preferredUiLang tcConfigB
776- #endif
777773 yield fullPathsFlag tcConfigB
778774 yield libFlag tcConfigB
779775 yield CompilerOption( " simpleresolution" ,
@@ -849,11 +845,7 @@ let testFlag tcConfigB =
849845let vsSpecificFlags ( tcConfigB : TcConfigBuilder ) =
850846 [ CompilerOption( " vserrors" , tagNone, OptionUnit ( fun () -> tcConfigB.errorStyle <- ErrorStyle.VSErrors), None, None)
851847 CompilerOption( " validate-type-providers" , tagNone, OptionUnit ( id), None, None) // preserved for compatibility's sake, no longer has any effect
852- #if PREFERRED_ UI_ LANG
853848 CompilerOption( " LCID" , tagInt, OptionInt ( fun _n -> ()), None, None)
854- #else
855- CompilerOption( " LCID" , tagInt, OptionInt ( fun n -> tcConfigB.lcid <- Some( n)), None, None)
856- #endif
857849 CompilerOption( " flaterrors" , tagNone, OptionUnit ( fun () -> tcConfigB.flatErrors <- true ), None, None)
858850 CompilerOption( " sqmsessionguid" , tagNone, OptionString ( fun s -> tcConfigB.sqmSessionGuid <- try System.Guid( s) |> Some with e -> None), None, None)
859851 CompilerOption( " gccerrors" , tagNone, OptionUnit ( fun () -> tcConfigB.errorStyle <- ErrorStyle.GccErrors), None, None)
0 commit comments