Skip to content

Commit 112d653

Browse files
kroegeramaigrr
authored andcommitted
build_all_configs.sh: Use CPPFLAGS instead of CFLAGS (#41)
`SPIFFS_OBJ_META_LEN` was not properly set for all languages (only for c). See output of `mkspiffs --version`.
1 parent 1693a95 commit 112d653

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build_all_configs.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ make dist BUILD_CONFIG_NAME="-arduino-esp8266" \
1616
# Build configuration for arduino-esp32
1717
make clean
1818
make dist BUILD_CONFIG_NAME="-arduino-esp32" \
19-
CFLAGS="-DSPIFFS_OBJ_META_LEN=4"
19+
CPPFLAGS="-DSPIFFS_OBJ_META_LEN=4"
2020

2121
# Build configuration for ESP-IDF (esp32)
2222
make clean
2323
make dist BUILD_CONFIG_NAME="-esp-idf" \
24-
CFLAGS="-DSPIFFS_OBJ_META_LEN=4"
24+
CPPFLAGS="-DSPIFFS_OBJ_META_LEN=4"
2525

2626

2727

0 commit comments

Comments
 (0)