Skip to content

Commit

Permalink
Dont mangle when targeting cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
jmgomez committed Feb 21, 2024
1 parent 773c066 commit 84c02fc
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 84c02fc

Please sign in to comment.