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 /Rules | |
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 'Rules')
-rw-r--r-- | Rules | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/Rules b/Rules index 1562f2ce6d..e08a28d9f3 100644 --- a/Rules +++ b/Rules @@ -101,8 +101,15 @@ $(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=$(subdir) $(headers) > $@; \ + $(evaluate-test) + +endif # $(headers) # This makes all the auxiliary and test programs. |