From 56403bd1461bb147917dc4a33e9b6b498253cf8e Mon Sep 17 00:00:00 2001 From: "Michael (XIAO Xufeng)" Date: Wed, 16 Sep 2020 12:31:12 +0800 Subject: [PATCH] ci: define ESP_PLATFORM macro during public header check --- tools/ci/check_public_headers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/ci/check_public_headers.py b/tools/ci/check_public_headers.py index 7d89fd4782..0f1de1e98f 100644 --- a/tools/ci/check_public_headers.py +++ b/tools/ci/check_public_headers.py @@ -195,7 +195,7 @@ class PublicHeaderChecker: raise HeaderFailedBuildError() def preprocess_one_header(self, header, num, ignore_sdkconfig_issue=False): - all_compilation_flags = ["-w", "-P", "-E", "-include", header, self.main_c] + self.include_dir_flags + all_compilation_flags = ["-w", "-P", "-E", "-DESP_PLATFORM", "-include", header, self.main_c] + self.include_dir_flags if not ignore_sdkconfig_issue: # just strip commnets to check for CONFIG_... macros rc, out, err = exec_cmd([self.gcc, "-fpreprocessed", "-dD", "-P", "-E", header] + self.include_dir_flags)