Skip to content

Commit

Permalink
test,misc: Update header consistency checks
Browse files Browse the repository at this point in the history
(cherry picked from commit 3cc03fe)
Signed-off-by: LIU Hao <[email protected]>
  • Loading branch information
lhmouse committed Nov 10, 2024
1 parent a765e87 commit 02bac9a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions check_includes.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ export CXXFLAGS="-D_WIN32_WINNT=0x0601 -Ibuild_debug -std=c++11"
# note: `sem` is not always available
_sem="parallel --will-cite --semaphore --halt soon,fail=1"

for _f in $(find "mcfgthread" -name "*.[hc]")
for _f in $(find ~+/"mcfgthread" -name "*.[hc]")
do
echo "Checking includes: ${_f}"
${_sem} -j+0 -- ${CC} ${CFLAGS} -x c ${_f} -S -o /dev/null
done
${_sem} --wait

for _f in $(find "mcfgthread" -name "*.[hc]pp")
for _f in $(find ~+/"mcfgthread" -name "*.[hc]pp")
do
echo "Checking includes: ${_f}"
${_sem} -j+0 -- ${CXX} ${CXXFLAGS} -x c++ ${_f} -S -o /dev/null
Expand Down
1 change: 1 addition & 0 deletions test/gthr_c89_pedantic.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
#include "../mcfgthread/sem.h"
#include "../mcfgthread/thread.h"
#include "../mcfgthread/tls.h"
#include "../mcfgthread/shared_mutex.h"

#if 0 __MCF_C99(+1) != 0
# warning Please compile this file as C89.
Expand Down

0 comments on commit 02bac9a

Please sign in to comment.