Skip to content

Commit

Permalink
Updated FCS to .NET/F# 9.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ncave committed Nov 16, 2024
1 parent ae39fa1 commit f3e48c5
Show file tree
Hide file tree
Showing 10 changed files with 5,080 additions and 2,580 deletions.
230 changes: 147 additions & 83 deletions lib/fcs/FSharp.Compiler.Service.deps.json

Large diffs are not rendered by default.

Binary file modified lib/fcs/FSharp.Compiler.Service.dll
Binary file not shown.
5,916 changes: 3,648 additions & 2,268 deletions lib/fcs/FSharp.Compiler.Service.xml

Large diffs are not rendered by default.

Binary file modified lib/fcs/FSharp.Core.dll
Binary file not shown.
1,493 changes: 1,273 additions & 220 deletions lib/fcs/FSharp.Core.xml

Large diffs are not rendered by default.

Binary file modified lib/fcs/FSharp.DependencyManager.Nuget.dll
Binary file not shown.
6 changes: 3 additions & 3 deletions lib/fcs/FSharp.DependencyManager.Nuget.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 6 additions & 5 deletions src/Fable.Cli/Main.fs
Original file line number Diff line number Diff line change
Expand Up @@ -1192,16 +1192,17 @@ let private compilationCycle (state: State) (changes: ISet<string>) =

Log.always ("Generating assembly...")

let! (diagnostics, exitCode), ms =
let! (diagnostics, result), ms =
Performance.measureAsync <| fun _ -> fableCompiler.CompileToFile(dllPath)

Log.always ($"Assembly generated in {ms}ms")

if exitCode <> 0 then
match result with
| Some ex ->
getFSharpDiagnostics diagnostics |> logErrors cliArgs.RootDir

return exitCode
else
Log.error (ex.Message)
return 1
| None ->
Log.always ($"Saving precompiled info...")
let! fableProj = fableCompiler.GetFableProject()

Expand Down
2 changes: 2 additions & 0 deletions src/Fable.Transforms/Rust/Replacements.fs
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,8 @@ let emitFormat (com: ICompiler) r t (args: Expr list) macro =
| [ StringTempl(fmt, args); Value(NewArray(ArrayValues restArgs, _, _), _) ] ->
(emitRawString fmt) :: args @ restArgs
| (StringTempl(fmt, args)) :: restArgs -> (emitRawString fmt) :: args @ restArgs
| [ ExprTypeAs(String, str); Value(NewArray(ArrayValues restArgs, _, _), _) ] ->
(emitRawString "{0}") :: str :: restArgs
| _ -> (emitRawString "{0}") :: args

let unboxedArgs = args |> FSharp2Fable.Util.unboxBoxedArgs
Expand Down
2 changes: 1 addition & 1 deletion src/fcs-fable/src/Compiler/Service/FSharpSource.fsi
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ type internal FSharpSource =
abstract TimeStamp: DateTime

/// Gets the internal text container. Text may be on-disk, in a stream, or a source text.
abstract internal GetTextContainer: unit -> Async<TextContainer>
abstract GetTextContainer: unit -> Async<TextContainer>

#if !FABLE_COMPILER
/// Creates a FSharpSource from disk. Only used internally.
Expand Down

0 comments on commit f3e48c5

Please sign in to comment.