Skip to content

Commit

Permalink
Dont mangle when targeting cpp (#23335)
Browse files Browse the repository at this point in the history
Unfortunately we cant trick the debugger when targeting C++ so this one
also needs to wait for our own debugger adapter.
  • Loading branch information
jmgomez committed Mar 3, 2024
1 parent 79bd6fe commit 90fe1b3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion compiler/ccgtypes.nim
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ proc mangleProc(m: BModule; s: PSym; makeUnique: bool): string =
proc fillBackendName(m: BModule; s: PSym) =
if s.loc.r == "":
var result: Rope
if s.kind in routineKinds and optCDebug in m.g.config.globalOptions and
if not m.compileToCpp and s.kind in routineKinds and optCDebug in m.g.config.globalOptions and
m.g.config.symbolFiles == disabledSf:
result = mangleProc(m, s, false).rope
else:
Expand Down
2 changes: 1 addition & 1 deletion tests/codegen/titaniummangle.nim
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
discard """
targets: "c cpp"
targets: "c"
matrix: "--debugger:native"
ccodecheck: "'_ZN14titaniummangle8testFuncE'"
ccodecheck: "'_ZN14titaniummangle8testFuncE6stringN14titaniummangle3FooE'"
Expand Down

0 comments on commit 90fe1b3

Please sign in to comment.