[pypy-commit] pypy reflex-support: make life a little easier testing on Mac

wlav noreply at buildbot.pypy.org
Thu Jul 14 14:22:01 CEST 2011


Author: Wim Lavrijsen <WLavrijsen at lbl.gov>
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)
-


More information about the pypy-commit mailing list