|
@@ -731,9 +731,12 @@ if env.msvc:
|
|
|
env.Append(CCFLAGS=["/Od"])
|
|
|
else:
|
|
|
if env["debug_symbols"]:
|
|
|
- # Adding dwarf-4 explicitly makes stacktraces work with clang builds,
|
|
|
- # otherwise addr2line doesn't understand them
|
|
|
- env.Append(CCFLAGS=["-gdwarf-4"])
|
|
|
+ if env["platform"] == "windows":
|
|
|
+ env.Append(CCFLAGS=["-gdwarf-5"])
|
|
|
+ else:
|
|
|
+ # Adding dwarf-4 explicitly makes stacktraces work with clang builds,
|
|
|
+ # otherwise addr2line doesn't understand them
|
|
|
+ env.Append(CCFLAGS=["-gdwarf-4"])
|
|
|
if methods.using_emcc(env):
|
|
|
# Emscripten only produces dwarf symbols when using "-g3".
|
|
|
env.Append(CCFLAGS=["-g3"])
|