Skip to content
This repository was archived by the owner on Nov 8, 2023. It is now read-only.

Commit 7549a9f

Browse files
committed
Set ALLOW_UNKNOWN_WARNING_OPTION
header-checker build may use an older version of clang than the platform version, causing errors for unknown cflags. Setting the env var allows these errors to be suppressed. Test: presubmit Change-Id: Icf08ec5913f5608ffc1e14daf3e6ed71610f733a
1 parent ba781b8 commit 7549a9f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

vndk/tools/header-checker/android/build-prebuilts.sh

+4
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,10 @@ cat > "${SOONG_OUT}/soong.variables" << __EOF__
118118
}
119119
__EOF__
120120

121+
# Allow unknown warning options since this may lag behind platform's compiler
122+
# version.
123+
export ALLOW_UNKNOWN_WARNING_OPTION=true
124+
121125
binaries=()
122126
for name in "${SOONG_BINARIES[@]}"; do
123127
binaries+=("${SOONG_HOST_OUT}/bin/${name}")

0 commit comments

Comments
 (0)