Skip to content

Commit 48aa582

Browse files
david-cermakginkgm
authored andcommitted
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
1 parent f6dd63d commit 48aa582

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tools/ci/check_public_headers.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,7 @@ def list_public_headers(self, ignore_dirs, ignore_files, only_dir=None):
259259
if item.startswith("-D"):
260260
include_dir_flags.append(item.replace('\\','')) # removes escaped quotes, eg: -DMBEDTLS_CONFIG_FILE=\\\"mbedtls/esp_config.h\\\"
261261
include_dir_flags.append("-I" + os.path.join(project_dir, "build", "config"))
262+
include_dir_flags.append("-DCI_HEADER_CHECK")
262263
sdkconfig_h = os.path.join(project_dir, "build", "config", "sdkconfig.h")
263264
# prepares a main_c file for easier sdkconfig checks and avoid compilers warning when compiling headers directly
264265
with open(sdkconfig_h, "a") as f:

0 commit comments

Comments
 (0)