mirror of
https://github.com/Redot-Engine/redot-engine.git
synced 2025-12-06 07:17:42 -05:00
[Windows] Use dwarf-4 for clang builds on Windows.
(cherry picked from commit 800076a6c2)
This commit is contained in:
@@ -711,7 +711,10 @@ if env.msvc:
|
||||
else:
|
||||
if env["debug_symbols"]:
|
||||
if env["platform"] == "windows":
|
||||
env.Append(CCFLAGS=["-gdwarf-5"])
|
||||
if methods.using_clang(env):
|
||||
env.Append(CCFLAGS=["-gdwarf-4"]) # clang dwarf-5 symbols are broken on Windows.
|
||||
else:
|
||||
env.Append(CCFLAGS=["-gdwarf-5"]) # For gcc, only dwarf-5 symbols seem usable by libbacktrace.
|
||||
else:
|
||||
# Adding dwarf-4 explicitly makes stacktraces work with clang builds,
|
||||
# otherwise addr2line doesn't understand them
|
||||
|
||||
Reference in New Issue
Block a user