Skip to content

Commit 77bfefd

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

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/platformio-build-esp32.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

@@ -112,7 +112,7 @@
112112
"-u", "newlib_include_pthread_impl",
113113
"-u", "newlib_include_assert_impl",
114114
"-u", "__cxa_guard_dummy",
115-
'-Wl,-Map="%s"' % relpath(join(env.subst("$PROJECT_BUILD_DIR"), env.subst("$PIOENV") , basename(env.subst("${PROJECT_DIR}.map")))).replace(" ", "_")
115+
'-Wl,-Map="%s"' % join("${BUILD_DIR}", "${PROGNAME}.map")
116116
],
117117

118118
CPPPATH=[

0 commit comments

Comments
 (0)