Skip to content

Commit

Permalink
Meta: Make check-debug-flags.sh work with the new changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
asynts authored and awesomekling committed Jan 25, 2021
1 parent 8465683 commit da69de1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Meta/check-debug-flags.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,15 @@ while IFS= read -r FLAG; do
# We simply search whether the CMakeLists.txt *ever* sets the flag.
# There are (basically) no false positives, but there might be false negatives,
# for example we intentionally don't check for commented-out lines here.
if ! grep -qP "add_compile_definitions\(\"${FLAG}" Meta/CMake/all_the_debug_macros.cmake ; then
if ! grep -qP "set\(${FLAG}" Meta/CMake/all_the_debug_macros.cmake ; then
echo "ALL_THE_DEBUG_MACROS probably doesn't include ${FLAG}"
MISSING_FLAGS=y
fi
done < <(
git ls-files -- \
'*.cpp' \
'*.h' \
'*.in' \
':!:Kernel/FileSystem/ext2_fs.h' \
':!:Userland/Libraries/LibELF/exec_elf.h' \
| xargs grep -P '^ *#.*DEBUG' \
Expand Down

0 comments on commit da69de1

Please sign in to comment.