Author: Wim Lavrijsen <[email protected]>
Branch: reflex-support
Changeset: r45589:35d45de496ad
Date: 2011-07-14 05:21 -0700
http://bitbucket.org/pypy/pypy/changeset/35d45de496ad/
Log: make life a little easier testing on Mac
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
@@ -10,6 +10,11 @@
cppflags=-I$(ROOTSYS)/include -L$(ROOTSYS)/lib
endif
+PLATFORM := $(shell uname -s)
+ifeq ($(PLATFORM),Darwin)
+ cppflags+=-dynamiclib -single_module -arch x86_64
+endif
+
ifeq ($(shell $(genreflex) --help | grep -- --with-methptrgetter),)
genreflexflags=
cppflags2=-O3
@@ -18,6 +23,7 @@
cppflags2=-Wno-pmf-conversions -O3
endif
+
example01Dict.so: example01.cxx example01.h example01.xml
$(genreflex) example01.h $(genreflexflags) --selection=example01.xml
g++ -o $@ example01_rflx.cpp example01.cxx -shared -lReflex $(cppflags)
$(cppflags2)
@@ -40,4 +46,3 @@
operatorsDict.so: operators.cxx operators.h
$(genreflex) operators.h
g++ -o $@ operators_rflx.cpp operators.cxx -shared -lReflex $(cppflags)
$(cppflags2)
-
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit