mirror of
https://github.com/esphome/esphome.git
synced 2026-06-24 11:07:33 +00:00
[esp32] Fix clang-tidy on ESP-IDF 6 (#16850)
This commit is contained in:
@@ -73,6 +73,7 @@ def clang_options(idedata):
|
||||
"-freorder-blocks",
|
||||
"-fno-jump-tables",
|
||||
"-fno-shrink-wrap",
|
||||
"-mno-target-align",
|
||||
)
|
||||
|
||||
if "zephyr" in triplet:
|
||||
@@ -137,6 +138,7 @@ def clang_options(idedata):
|
||||
if flag not in omit_flags
|
||||
and not flag.startswith("-Werror")
|
||||
and not flag.startswith("-std=")
|
||||
and not flag.startswith("-mtune=esp")
|
||||
)
|
||||
cmd.append("-std=gnu++20")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user