Skip to content

Commit

Permalink
Update CompilerConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
edgarfgp committed Jul 11, 2024
1 parent 2bf00ac commit b09c82b
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
2 changes: 2 additions & 0 deletions src/Compiler/Driver/CompilerConfig.fs
Original file line number Diff line number Diff line change
Expand Up @@ -1329,6 +1329,8 @@ type TcConfig private (data: TcConfigBuilder, validate: bool) =
member _.emitTailcalls = data.emitTailcalls
member _.deterministic = data.deterministic
member _.concurrentBuild = data.concurrentBuild
member _.graphBasedChecking = data.graphBasedChecking
member _.parallelOptimization = data.parallelOptimization
member _.parallelIlxGen = data.parallelIlxGen
member _.emitMetadataAssembly = data.emitMetadataAssembly
member _.pathMap = data.pathMap
Expand Down
8 changes: 6 additions & 2 deletions src/Compiler/Driver/CompilerConfig.fsi
Original file line number Diff line number Diff line change
Expand Up @@ -432,12 +432,12 @@ type TcConfigBuilder =

mutable concurrentBuild: bool

mutable parallelIlxGen: bool

mutable graphBasedChecking: bool

mutable parallelOptimization: bool

mutable parallelIlxGen: bool

mutable emitMetadataAssembly: MetadataAssemblyGeneration

mutable preferredUiLang: string option
Expand Down Expand Up @@ -768,6 +768,10 @@ type TcConfig =

member concurrentBuild: bool

member graphBasedChecking: bool

member parallelOptimization: bool

member parallelIlxGen: bool

member emitMetadataAssembly: MetadataAssemblyGeneration
Expand Down
8 changes: 7 additions & 1 deletion src/Compiler/Driver/CompilerOptions.fs
Original file line number Diff line number Diff line change
Expand Up @@ -1050,7 +1050,13 @@ let codeGenerationFlags isFsi (tcConfigB: TcConfigBuilder) =
Some(FSComp.SR.optsCrossoptimize ())
)

CompilerOption("reflectionfree", tagNone, OptionSwitch(SetRealsig tcConfigB), None, Some(FSComp.SR.optsReflectionFree ()))
CompilerOption(
"reflectionfree",
tagNone,
OptionUnit(fun () -> tcConfigB.useReflectionFreeCodeGen <- true),
None,
Some(FSComp.SR.optsReflectionFree ())
)

CompilerOption(
"graphbasedchecking",
Expand Down

0 comments on commit b09c82b

Please sign in to comment.