Skip to content

Commit

Permalink
Update check-headers script to ignore platform headers (google#6472)
Browse files Browse the repository at this point in the history
  • Loading branch information
bejado authored Jan 18, 2023
1 parent 3ee635f commit 4c4201c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions build/common/check-headers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ FILAMENT_HEADERS="$1"
includes=()
pushd "$FILAMENT_HEADERS" >/dev/null
for f in $(find . -name '*.h'); do
# Ignore platform headers. These may contain platform-specific includes.
if [[ "$f" == *backend/platforms/* ]]; then
continue
fi
include_path="${f#./}" # strip leading ./
includes+=("${include_path}")
done
Expand Down

0 comments on commit 4c4201c

Please sign in to comment.