You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I set a custom board_build.partitions to a path (e.g. board_build.partitions = extras/partition_table), the generated call to g++ doesn't add quotes around extras/partition_table and causes a warning: ISO C++11 requires whitespace after the macro name for every object compiled.
Steps to Reproduce
Create a project with a custom board_puild.partitions
Build the firmware and check the output logs.
Actual Results
A lot of <command-line>: warning: ISO C++11 requires whitespace after the macro name is printed. Also, building in debug mode you can see that -DARDUINO_PARTITION_firmware-shared-libs/system/partition_table is a parameter to g++.
Expected Results
-DARDUINO_PARTITION_firmware-shared-libs/system/partition_table is defined instead as -DARDUINO_PARTITION_\"firmware-shared-libs/system/partition_table\"
The text was updated successfully, but these errors were encountered:
fionn-r
changed the title
No quotes included in deefine for custom board_build.partitions
No quotes included in define for custom board_build.partitions
May 2, 2022
This fixes possible issues when developers specify arbitrary partition files
using relative or absolute paths.
Additionally, hyphens in filenames are replaced with underscores to
avoid compilation warnings "ISO C++11 requires whitespace after the macro name"
Resolvesplatformio/platform-espressif32#787
Configuration
Operating system: Ubuntu 20.04
PlatformIO Version (
platformio --version
):platform = [email protected]
Description of problem
Board is esp-wrover-kit
When I set a custom board_build.partitions to a path (e.g.
board_build.partitions = extras/partition_table
), the generated call to g++ doesn't add quotes aroundextras/partition_table
and causes awarning: ISO C++11 requires whitespace after the macro name
for every object compiled.Steps to Reproduce
Actual Results
A lot of
<command-line>: warning: ISO C++11 requires whitespace after the macro name
is printed. Also, building in debug mode you can see that-DARDUINO_PARTITION_firmware-shared-libs/system/partition_table
is a parameter to g++.Expected Results
-DARDUINO_PARTITION_firmware-shared-libs/system/partition_table
is defined instead as-DARDUINO_PARTITION_\"firmware-shared-libs/system/partition_table\"
The text was updated successfully, but these errors were encountered: