mirror of
https://github.com/esphome/esphome.git
synced 2026-10-06 19:06:37 +00:00
[esp32] Suppress -Wvolatile in the direct ESP-IDF build (#17404)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user