Skip to content

Fix linking failure for space in path in PlatformIO builder scripts #6464

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Mar 28, 2022
2 changes: 1 addition & 1 deletion tools/platformio-build-esp32.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@
"-u", "newlib_include_pthread_impl",
"-u", "newlib_include_assert_impl",
"-u", "__cxa_guard_dummy",
'-Wl,-Map="%s"' % join("$BUILD_DIR", basename(env.subst("${PROJECT_DIR}.map")))
'-Wl,-Map="%s"' % join("${BUILD_DIR}", "${PROGNAME}.map")
],

CPPPATH=[
Expand Down
2 changes: 1 addition & 1 deletion tools/platformio-build-esp32c3.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@
"-u", "newlib_include_pthread_impl",
"-u", "newlib_include_assert_impl",
"-u", "__cxa_guard_dummy",
'-Wl,-Map="%s"' % join("$BUILD_DIR", basename(env.subst("${PROJECT_DIR}.map")))
'-Wl,-Map="%s"' % join("${BUILD_DIR}", "${PROGNAME}.map")
],

CPPPATH=[
Expand Down
2 changes: 1 addition & 1 deletion tools/platformio-build-esp32s2.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@
"-u", "newlib_include_pthread_impl",
"-u", "newlib_include_assert_impl",
"-u", "__cxa_guard_dummy",
'-Wl,-Map="%s"' % join("$BUILD_DIR", basename(env.subst("${PROJECT_DIR}.map")))
'-Wl,-Map="%s"' % join("${BUILD_DIR}", "${PROGNAME}.map")
],

CPPPATH=[
Expand Down
2 changes: 1 addition & 1 deletion tools/platformio-build-esp32s3.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@
"-u", "newlib_include_pthread_impl",
"-u", "newlib_include_assert_impl",
"-u", "__cxa_guard_dummy",
'-Wl,-Map="%s"' % join("$BUILD_DIR", basename(env.subst("${PROJECT_DIR}.map")))
'-Wl,-Map="%s"' % join("${BUILD_DIR}", "${PROGNAME}.map")
],

CPPPATH=[
Expand Down