[esp32] Suppress -Wvolatile in the direct ESP-IDF build (#17404)

This commit is contained in:
J. Nick Koston
2026-07-06 03:02:12 +00:00
committed by GitHub
parent 39c0f9cc84
commit e095c457ff
10 changed files with 127 additions and 4 deletions
+9
View File
@@ -699,6 +699,15 @@ def add_build_flag(build_flag: str):
CORE.add_build_flag(build_flag)
def add_cxx_build_flag(build_flag: str) -> None:
"""Add a global build flag that applies to C++ compiles only.
Use for flags GCC rejects or warns about when passed on C compiles
(e.g. ``-Wno-volatile``).
"""
CORE.add_cxx_build_flag(build_flag)
def add_build_unflag(build_unflag: str) -> None:
"""Add a global build unflag to the compiler flags."""
CORE.add_build_unflag(build_unflag)