Author: Wim Lavrijsen <[email protected]>
Branch: reflex-support
Changeset: r55660:4d27f16f26e7
Date: 2012-06-13 16:37 -0700
http://bitbucket.org/pypy/pypy/changeset/4d27f16f26e7/
Log: crossing test and rootmap generation for CINT backend
diff --git a/pypy/module/cppyy/test/Makefile b/pypy/module/cppyy/test/Makefile
--- a/pypy/module/cppyy/test/Makefile
+++ b/pypy/module/cppyy/test/Makefile
@@ -44,6 +44,7 @@
else
%Dict.so: %_cint.cxx %.cxx
g++ -o $@ $^ -shared $(cppflags) $(cppflags2)
+ rlibmap -f -o $*Dict.rootmap -l $@ -c $*_LinkDef.h
%_cint.cxx: %.h %_LinkDef.h
rootcint -f $@ -c $*.h $*_LinkDef.h
@@ -58,4 +59,4 @@
.PHONY: clean
clean:
- -rm -f $(dicts) $(subst .so,.rootmap,$(dicts))
+ -rm -f $(dicts) $(subst .so,.rootmap,$(dicts)) $(wildcard *_cint.h)
diff --git a/pypy/module/cppyy/test/crossing_LinkDef.h
b/pypy/module/cppyy/test/crossing_LinkDef.h
new file mode 100644
--- /dev/null
+++ b/pypy/module/cppyy/test/crossing_LinkDef.h
@@ -0,0 +1,11 @@
+#ifdef __CINT__
+
+#pragma link off all globals;
+#pragma link off all classes;
+#pragma link off all functions;
+
+#pragma link C++ namespace crossing;
+
+#pragma link C++ class crossing::A;
+
+#endif
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit