aboutsummaryrefslogtreecommitdiff
path: root/dist/examples/cxx/hybrid/multiroot
diff options
context:
space:
mode:
Diffstat (limited to 'dist/examples/cxx/hybrid/multiroot')
-rw-r--r--dist/examples/cxx/hybrid/multiroot/makefile4
-rw-r--r--dist/examples/cxx/hybrid/multiroot/nmakefile4
2 files changed, 8 insertions, 0 deletions
diff --git a/dist/examples/cxx/hybrid/multiroot/makefile b/dist/examples/cxx/hybrid/multiroot/makefile
index 28423c1..d427726 100644
--- a/dist/examples/cxx/hybrid/multiroot/makefile
+++ b/dist/examples/cxx/hybrid/multiroot/makefile
@@ -22,6 +22,10 @@ ifeq ($(XSDE_REUSE_STYLE),mixin)
EXTRA_XSDFLAGS += --reuse-style-mixin
endif
+ifeq ($(XSDE_POLYMORPHIC),y)
+EXTRA_XSDFLAGS += --runtime-polymorphic
+endif
+
driver: driver.o protocol.o protocol-pskel.o protocol-pimpl.o \
$(root)/libxsde/xsde/libxsde.a
diff --git a/dist/examples/cxx/hybrid/multiroot/nmakefile b/dist/examples/cxx/hybrid/multiroot/nmakefile
index a647e50..bd3ffe3 100644
--- a/dist/examples/cxx/hybrid/multiroot/nmakefile
+++ b/dist/examples/cxx/hybrid/multiroot/nmakefile
@@ -22,6 +22,10 @@ EXTRA_XSDFLAGS = $(EXTRA_XSDFLAGS) --suppress-validation
EXTRA_XSDFLAGS = $(EXTRA_XSDFLAGS) --reuse-style-mixin
!endif
+!if "$(XSDE_POLYMORPHIC)" == "y"
+EXTRA_XSDFLAGS = $(EXTRA_XSDFLAGS) --runtime-polymorphic
+!endif
+
driver.exe: driver.obj protocol.obj protocol-pskel.obj protocol-pimpl.obj \
$(root)\libxsde\xsde\xsde.lib