include: fix build without C++ compiler installed

The rule for headers++.chk wants to move headers++.chk.new to the
designated target, which means we have to create that file in the first
place.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Wei Liu <wei.liu2@citrix.com>
Release-acked-by: Julien Grall <julien.grall@arm.com>
This commit is contained in:
Jan Beulich authored and Wei Liu committed 2017-05-16 12:40:21 +01:00
1 parent 36a049ff46
commit b231884da8
1 file changed
+4 -1
+4 -1
View File
@@ -120,7 +120,10 @@ headers99.chk: $(PUBLIC_C99_HEADERS) Makefile
headers++.chk: $(PUBLIC_HEADERS) Makefile
rm -f $@.new
$(CXX) -v >/dev/null 2>&1 || exit 0; \
if ! $(CXX) -v >/dev/null 2>&1; then \
touch $@.new; \
exit 0; \
fi; \
$(foreach i, $(filter %.h,$^), \
echo "#include "\"$(i)\" \
| $(CXX) -x c++ -std=gnu++98 -Wall -Werror -D__XEN_TOOLS__ \
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.