mirror of
https://github.com/qmk/qmk_firmware.git
synced 2026-06-20 14:23:45 -04:00
Always generate .map files. (#25961)
* Always generate .map files. Useful when NOT compiling with debugging C/CXX/AS flags too! e.g. to find which source file was used to compile-in a weak reference. * Shorten comment phrase --------- Co-authored-by: フィルターペーパー <76888457+filterpaper@users.noreply.github.com>
This commit is contained in:
@@ -50,10 +50,10 @@ ifeq ($(strip $(DEBUG_ENABLE)),yes)
|
||||
CFLAGS += -ggdb3
|
||||
CXXFLAGS += -ggdb3
|
||||
ASFLAGS += -ggdb3
|
||||
# Create a map file when debugging
|
||||
LDFLAGS += -Wl,-Map=$(BUILD_DIR)/$(TARGET).map,--cref
|
||||
endif
|
||||
|
||||
# Always create a map file to see what was compiled and where.
|
||||
LDFLAGS += -Wl,-Map=$(BUILD_DIR)/$(TARGET).map,--cref
|
||||
|
||||
#---------------- C Compiler Options ----------------
|
||||
|
||||
|
||||
Reference in New Issue
Block a user