From b231884da805d21156163d3ea2ef4de2e9f65fb0 Mon Sep 17 00:00:00 2001 From: Jan Beulich Date: Fri, 12 May 2017 00:52:54 -0600 Subject: [PATCH] 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 Reviewed-by: Wei Liu Release-acked-by: Julien Grall --- xen/include/Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/xen/include/Makefile b/xen/include/Makefile index cd271dde0a..3a6fa0fd59 100644 --- a/xen/include/Makefile +++ b/xen/include/Makefile @@ -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__ \ -- 2.39.5