Skip to content

Commit 8706db0

Browse files
authored
Merge pull request #564 from kekyo/fix-empty-pdb
Fixed empty symbol declared pdb.
2 parents b0fcf1d + f45ae4f commit 8706db0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/fsharp/fsc.fs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1961,7 +1961,10 @@ let main1OfAst (openBinariesInMemory, assemblyName, target, outfile, pdbFile, dl
19611961
tcConfigB.framework <- not noframework
19621962
// Preset: --optimize+ -g --tailcalls+ (see 4505)
19631963
SetOptimizeSwitch tcConfigB OptionSwitch.On
1964-
SetDebugSwitch tcConfigB None OptionSwitch.Off
1964+
SetDebugSwitch tcConfigB None (
1965+
match pdbFile with
1966+
| Some _ -> OptionSwitch.On
1967+
| None -> OptionSwitch.Off)
19651968
SetTailcallSwitch tcConfigB OptionSwitch.On
19661969
tcConfigB.target <- target
19671970
tcConfigB.sqmNumOfSourceFiles <- 1

0 commit comments

Comments
 (0)