Skip to content

Commit beedeea

Browse files
authored
Update PlatformIO build script to handle spaces in env name (espressif#4791)
1 parent 71e2142 commit beedeea

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tools/platformio-build-esp32.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@
102102
"-u", "newlib_include_syscalls_impl",
103103
"-u", "newlib_include_pthread_impl",
104104
"-u", "__cxa_guard_dummy",
105-
"-Wl,-Map=" + join("$BUILD_DIR", basename(env.subst("${PROJECT_DIR}.map")))
105+
'-Wl,-Map="%s"' % join("$BUILD_DIR", basename(env.subst("${PROJECT_DIR}.map")))
106106
],
107107

108108
CPPPATH=[

tools/platformio-build-esp32s2.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@
9696
"-u", "newlib_include_syscalls_impl",
9797
"-u", "newlib_include_pthread_impl",
9898
"-u", "__cxa_guard_dummy",
99-
"-Wl,-Map=" + join("$BUILD_DIR", basename(env.subst("${PROJECT_DIR}.map")))
99+
'-Wl,-Map="%s"' % join("$BUILD_DIR", basename(env.subst("${PROJECT_DIR}.map")))
100100
],
101101

102102
CPPPATH=[

0 commit comments

Comments
 (0)