[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen master] include: fix build without C++ compiler installed
commit b231884da805d21156163d3ea2ef4de2e9f65fb0 Author: Jan Beulich <JBeulich@xxxxxxxx> AuthorDate: Fri May 12 00:52:54 2017 -0600 Commit: Wei Liu <wei.liu2@xxxxxxxxxx> CommitDate: Tue May 16 12:40:21 2017 +0100 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@xxxxxxxx> Reviewed-by: Wei Liu <wei.liu2@xxxxxxxxxx> Release-acked-by: Julien Grall <julien.grall@xxxxxxx> --- xen/include/Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/xen/include/Makefile b/xen/include/Makefile index cd271dd..3a6fa0f 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__ \ -- generated by git-patchbot for /home/xen/git/xen.git#master _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxx https://lists.xenproject.org/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |