Skip to content

Commit 4c281d1

Browse files
authored
Update espidf.py
1 parent 6ea316e commit 4c281d1

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
@@ -1801,13 +1801,10 @@ def get_python_exe():
18011801
"-DSDKCONFIG=" + SDKCONFIG_PATH,
18021802
]
18031803

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

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

0 commit comments

Comments
 (0)