Skip to content

Commit 8c9de0d

Browse files
committed
Use compiler.cpp.extra_flags instead of build.extra_flags
This prevents shadowing of the ESP32 platform flags and allows Remote.c to be compiled together with the theme editor. arduino/arduino-cli#846
1 parent 11febb4 commit 8c9de0d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ats-mini/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ ifdef THEME_EDITOR
2828
endif
2929

3030
OPTIONS = \
31-
--build-property "build.extra_flags=$(DEFINES)" \
31+
--build-property "compiler.cpp.extra_flags=$(DEFINES)" \
3232
--warnings all
3333

3434
HEADERS = \

docs/source/development.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ The available options are:
2424
To set an option, add the `--build-property` command line argument like this:
2525

2626
```shell
27-
arduino-cli compile --build-property "build.extra_flags=-DTHEME_EDITOR -DDISABLE_HOLDOFF" --clean -e -p COM_PORT -u ats-mini
27+
arduino-cli compile --build-property "compiler.cpp.extra_flags=-DTHEME_EDITOR -DDISABLE_HOLDOFF" --clean -e -p COM_PORT -u ats-mini
2828
```
2929

3030
## Using the make command

0 commit comments

Comments
 (0)