aboutsummaryrefslogtreecommitdiff
path: root/build/bootstrap.make
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2010-03-09 17:40:36 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2010-03-09 17:40:36 +0200
commit615a33c8f9e03db07cd596b57129ab47baee5bc1 (patch)
treeea15ea4c297b5e8d51991081e852f6b9fdeab9ce /build/bootstrap.make
parent35e65b0420e1c815a31505d42a5dd514ba778bd3 (diff)
Check for g++ with support for plugins
Diffstat (limited to 'build/bootstrap.make')
-rw-r--r--build/bootstrap.make25
1 files changed, 16 insertions, 9 deletions
diff --git a/build/bootstrap.make b/build/bootstrap.make
index 8522153..3078be4 100644
--- a/build/bootstrap.make
+++ b/build/bootstrap.make
@@ -43,18 +43,25 @@ cleandoc: $(out_base)/.cleandoc
endif
-# If we don't have dependency auto-generation then we need to manually
-# make sure that C++ header files are compiled before C++ source files.
-# To do this we make the object files ($2) depend in order-only on
-# generated files ($3).
+ifdef cxx_id
+
+# It would be better to do these checks in the script once instead
+# of for every makefile.
#
-ifeq ($(cxx_id),generic)
+ifneq ($(MAKECMDGOALS),disfigure)
-define include-dep
-$(if $2,$(eval $2: | $3))
-endef
+ifneq ($(cxx_id),gnu)
+$(error only GNU g++ can be used to build the ODB compiler)
+endif
-else
+$(call include,$(bld_root)/cxx/gnu/configuration.make)
+
+ifdef cxx_gnu
+ifeq ($(shell $(cxx_gnu) -print-file-name=plugin),plugin)
+$(error $(cxx_gnu) does not support plugins)
+endif
+endif
+endif # disfigure
define include-dep
$(call -include,$1)