fix(espidf): shadow-exclude http_parser.h — FastLED's copy hid the IDF enum header

IDF's esp_http_server.h includes <http_parser.h> for the HTTP_GET/...
method enums. FastLED ships fl/stl/asio/http/http_parser.h and the merge
put that directory on the global -I, so the IDF include resolved to
FastLED's file and every httpd_method_t use failed with 'HTTP_GET was
not declared'. FastLED only references its copy path-qualified, so the
directory can safely stay off -I.
This commit is contained in:
David Montero Crespo 2026-08-19 20:16:12 +02:00
parent d0ea4cbf8f
commit 33ee71ef21
1 changed files with 7 additions and 0 deletions

View File

@ -1268,6 +1268,13 @@ class ESPIDFCompiler:
# the stub via the file-relative "platforms/stub/Arduino.h", which
# still resolves with the directory off -I.
'arduino.h',
# Same story with an IDF component header: IDF's esp_http_server.h
# does #include <http_parser.h> (the http_parser component's enum
# with HTTP_GET/HTTP_POST/...). FastLED ships its own
# fl/stl/asio/http/http_parser.h and references it path-qualified
# only, so keep its directory off -I or the IDF include resolves to
# FastLED's file and every httpd_method_t use fails to compile.
'http_parser.h',
})
# arduino-esp32 uses a single library architecture id ("esp32") across