mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-04 01:42:54 +03:00
rt: Turn on frame pointers for stack walking
This commit is contained in:
@@ -9,8 +9,14 @@ endef
|
||||
$(foreach t,$(CFG_TARGET_TRIPLES),$(eval $(call DEF_HOST_VAR,$(t))))
|
||||
$(foreach t,$(CFG_TARGET_TRIPLES),$(info cfg: host for $(t) is $(HOST_$(t))))
|
||||
|
||||
# FIXME: This appears to do nothing
|
||||
CFG_GCCISH_FLAGS += -fno-strict-aliasing
|
||||
|
||||
# FIXME: no-omit-frame-pointer is just so that task_start_wrapper
|
||||
# has a frame pointer and the stack walker can understand it. Turning off
|
||||
# frame pointers everywhere is overkill
|
||||
CFG_GCCISH_CFLAGS += -fno-omit-frame-pointer
|
||||
|
||||
# On Darwin, we need to run dsymutil so the debugging information ends
|
||||
# up in the right place. On other platforms, it automatically gets
|
||||
# embedded into the executable, so use a no-op command.
|
||||
|
||||
Reference in New Issue
Block a user