Skip to content

Commit 2d9ff88

Browse files
authored
Build the map file always for espidf too
1 parent f7002be commit 2d9ff88

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

builder/frameworks/espidf.py

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1799,13 +1799,10 @@ def get_python_exe():
17991799
"-DSDKCONFIG=" + SDKCONFIG_PATH,
18001800
]
18011801

1802-
if "CPPDEFINES" in env:
1803-
flatten_cppdefines = env.Flatten(env['CPPDEFINES'])
1804-
if "SHOW_METRICS" in flatten_cppdefines:
1805-
# This will add the linker flag for the map file
1806-
extra_cmake_args.append(
1807-
f'-DCMAKE_EXE_LINKER_FLAGS=-Wl,-Map={os.path.join(BUILD_DIR, env.subst("$PROGNAME") + ".map")}'
1808-
)
1802+
# This will add the linker flag for the map file
1803+
extra_cmake_args.append(
1804+
f'-DCMAKE_EXE_LINKER_FLAGS=-Wl,-Map={os.path.join(BUILD_DIR, env.subst("$PROGNAME") + ".map")}'
1805+
)
18091806

18101807
# Add any extra args from board config
18111808
extra_cmake_args += click.parser.split_arg_string(board.get("build.cmake_extra_args", ""))

0 commit comments

Comments
 (0)