mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 07:30:19 +00:00
Meta: Make check-debug-flags.sh work with the new changes.
This commit is contained in:
parent
8465683dcf
commit
da69de1f1b
Notes:
sideshowbarker
2024-07-18 22:52:43 +09:00
Author: https://github.com/asynts Commit: https://github.com/SerenityOS/serenity/commit/da69de1f1b0 Pull-request: https://github.com/SerenityOS/serenity/pull/5092
1 changed files with 2 additions and 1 deletions
|
@ -11,7 +11,7 @@ while IFS= read -r FLAG; do
|
||||||
# We simply search whether the CMakeLists.txt *ever* sets the flag.
|
# We simply search whether the CMakeLists.txt *ever* sets the flag.
|
||||||
# There are (basically) no false positives, but there might be false negatives,
|
# There are (basically) no false positives, but there might be false negatives,
|
||||||
# for example we intentionally don't check for commented-out lines here.
|
# 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}"
|
echo "ALL_THE_DEBUG_MACROS probably doesn't include ${FLAG}"
|
||||||
MISSING_FLAGS=y
|
MISSING_FLAGS=y
|
||||||
fi
|
fi
|
||||||
|
@ -19,6 +19,7 @@ done < <(
|
||||||
git ls-files -- \
|
git ls-files -- \
|
||||||
'*.cpp' \
|
'*.cpp' \
|
||||||
'*.h' \
|
'*.h' \
|
||||||
|
'*.in' \
|
||||||
':!:Kernel/FileSystem/ext2_fs.h' \
|
':!:Kernel/FileSystem/ext2_fs.h' \
|
||||||
':!:Userland/Libraries/LibELF/exec_elf.h' \
|
':!:Userland/Libraries/LibELF/exec_elf.h' \
|
||||||
| xargs grep -P '^ *#.*DEBUG' \
|
| xargs grep -P '^ *#.*DEBUG' \
|
||||||
|
|
Loading…
Reference in a new issue