46 Zeilen
1.6 KiB
INI
46 Zeilen
1.6 KiB
INI
; =============================================================================
|
|
; Project: FoxMesh
|
|
; Author: Tom OE3TKT
|
|
; Platform: espressif32
|
|
; Description: PlatformIO Project Configuration File
|
|
; =============================================================================
|
|
|
|
[platformio]
|
|
; Enable global PlatformIO Cache
|
|
build_cache_dir = ~/.platformio/.cache
|
|
|
|
[env:ttgo-lora32-v21]
|
|
platform = espressif32
|
|
board = ttgo-lora32-v21
|
|
framework = espidf
|
|
board_upload.flash_size = 4MB
|
|
board_upload.maximum_size = 4194304
|
|
monitor_speed = 115200
|
|
monitor_filters = esp32_exception_decoder
|
|
|
|
; Advanced Compiler Configurations for Framework and System Headers
|
|
build_flags =
|
|
-D CCACHE_ENABLE=1
|
|
; Treats ESP-IDF libc extensions headers as system headers to suppress external warnings
|
|
; -isystem /home/tom/.platformio/packages/framework-espidf/components/esp_libc/platform_include
|
|
-Wno-include-next
|
|
; --- STRICT MODE FOR PROJECT APPLICATION CODE ONLY ---
|
|
; These flags are strictly applied ONLY to C++ files inside the src/ directory.
|
|
build_src_flags =
|
|
; Enables all standard compiler warning flags
|
|
-Wall
|
|
; Enables additional strict development warnings
|
|
-Wextra
|
|
; Enforces strict ISO C++ standard compliance on application source files
|
|
-Wpedantic
|
|
; FIXED: Prevents third-party IDF anonymous structs from breaking the C++ build
|
|
-Wno-error=pedantic
|
|
; Warns on implicit type conversions (e.g., int to uint8_t)
|
|
-Wconversion
|
|
; Warns if a local variable shadows another variable in scope
|
|
-Wshadow
|
|
|
|
-Wno-include-next
|
|
; Promotes all warnings to hard compilation errors to guarantee clean code
|
|
;-Werror
|