Quantcast

[xen master] include: fix build without C++ compiler installed

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[xen master] include: fix build without C++ compiler installed

patchbot
commit b231884da805d21156163d3ea2ef4de2e9f65fb0
Author:     Jan Beulich <[hidden email]>
AuthorDate: Fri May 12 00:52:54 2017 -0600
Commit:     Wei Liu <[hidden email]>
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 <[hidden email]>
    Reviewed-by: Wei Liu <[hidden email]>
    Release-acked-by: Julien Grall <[hidden email]>
---
 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
[hidden email]
https://lists.xenproject.org/xen-changelog
Loading...