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:
Dominic Clifton
2026-03-16 11:31:16 +01:00
committed by GitHub
parent 1a3728db21
commit 1f96f890fa
+2 -2
View File
@@ -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 ----------------