diff options
author | Florian Weimer <fweimer@redhat.com> | 2019-02-15 21:51:58 +0100 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2019-02-16 08:25:16 +0100 |
commit | ad18dadec945329f95b53b63ed69f91878a329df (patch) | |
tree | 8c44cc46d0c33a0ddc261e8f6245e0493283d82a /Makefile | |
parent | ebd32784ce2029d0461a90a79bc4e37f8d051765 (diff) | |
download | glibc-ad18dadec945329f95b53b63ed69f91878a329df.tar.gz glibc-ad18dadec945329f95b53b63ed69f91878a329df.tar.xz glibc-ad18dadec945329f95b53b63ed69f91878a329df.zip |
Add check for missing wrapper headers
If building on a subset of architectures only, it is easy to miss wrapper headers which are required by other architectures because they lack the corresponding sysdeps header. The check ensures that every installed header which is not itself a sysdeps header has a header under include/ (that presumably wraps the header, and perhaps also adding declarations and definitions for !_ISOMAC). Also check for the absence of the sysdeps/generic/bits directory removed in commit c72565e5f1124c2dc72573e83406fe999e56091f, to make accidental re-introduction more difficult. Reviewed-by: Carlos O'Donell <carlos@redhat.com>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/Makefile b/Makefile index 1bfe7fefe1..dc5de7aa6b 100644 --- a/Makefile +++ b/Makefile @@ -331,8 +331,13 @@ $(objpfx)check-installed-headers-cxx.out: \ "$(CXX) $(filter-out -std=%,$(CXXFLAGS)) -D_ISOMAC $(+includes)" \ $(headers) > $@; \ $(evaluate-test) -endif -endif +endif # $(CXX) + +tests-special += $(objpfx)check-wrapper-headers.out +$(objpfx)check-wrapper-headers.out: scripts/check-wrapper-headers.py $(headers) + $(PYTHON) $< --root=. --subdir=. $(headers) \ + --generated $(common-generated) > $@; $(evaluate-test) +endif # $(headers) define summarize-tests @egrep -v '^(PASS|XFAIL):' $(objpfx)$1 || true |