mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-02 04:04:31 +02:00
CI: Public header check defines CI_HEADER_CHECK macro
This flags compilation checking in the CI so headers can use the macro to ignore specific compilation issues
This commit is contained in:
committed by
Michael (XIAO Xufeng)
parent
f6dd63d03d
commit
48aa58268e
@@ -259,6 +259,7 @@ class PublicHeaderChecker:
|
||||
if item.startswith("-D"):
|
||||
include_dir_flags.append(item.replace('\\','')) # removes escaped quotes, eg: -DMBEDTLS_CONFIG_FILE=\\\"mbedtls/esp_config.h\\\"
|
||||
include_dir_flags.append("-I" + os.path.join(project_dir, "build", "config"))
|
||||
include_dir_flags.append("-DCI_HEADER_CHECK")
|
||||
sdkconfig_h = os.path.join(project_dir, "build", "config", "sdkconfig.h")
|
||||
# prepares a main_c file for easier sdkconfig checks and avoid compilers warning when compiling headers directly
|
||||
with open(sdkconfig_h, "a") as f:
|
||||
|
Reference in New Issue
Block a user