Skip to content

Commit e57febe

Browse files
authored
Use alternative path and escaping method
1 parent 77bfefd commit e57febe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/platformio-build-esp32c3.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
# Extends: https://github.com/platformio/platform-espressif32/blob/develop/builder/main.py
2626

27-
from os.path import abspath, isdir, isfile, join, basename, relpath
27+
from os.path import abspath, isdir, isfile, join, basename
2828

2929
from SCons.Script import DefaultEnvironment
3030

@@ -138,7 +138,7 @@
138138
"-u", "newlib_include_assert_impl",
139139
"-u", "__cxa_guard_dummy",
140140
"-u", "__cxx_fatal_exception",
141-
'-Wl,-Map="%s"' % relpath(join(env.subst("$PROJECT_BUILD_DIR"), env.subst("$PIOENV") , basename(env.subst("${PROJECT_DIR}.map")))).replace(" ", "_")
141+
'-Wl,-Map="%s"' % join("${BUILD_DIR}", "${PROGNAME}.map")
142142
],
143143

144144
CPPPATH=[

0 commit comments

Comments
 (0)