mirror of
https://github.com/myhdl/myhdl.git
synced 2024-12-14 07:44:38 +08:00
Added an additional cver makefile for OS X. Also changed the _extracHierachy._isListOfSigs test to "obj is not None" from "obj != None".
This commit is contained in:
parent
bc7b8fc44c
commit
045349965f
21
cosimulation/cver/makefile.osx
Normal file
21
cosimulation/cver/makefile.osx
Normal file
@ -0,0 +1,21 @@
|
||||
# could add to CFLAGS to turn on warnings if you are using gcc
|
||||
WARNS=-Wall
|
||||
# change path if not running test from installed directory location
|
||||
INCS=-I/opt/local/share/gplcver/pli_incs
|
||||
# you must use exactly these flags for OSX
|
||||
CFLAGS= -fPIC -Wall $(INCS) -dynamic -fno-common
|
||||
LFLAGS= -flat_namespace -bundle -undefined suppress
|
||||
# change to your compiler
|
||||
CC=gcc
|
||||
|
||||
all: myhdl_vpi.dylib
|
||||
|
||||
myhdl_vpi.o: myhdl_vpi.c
|
||||
$(CC) $(CFLAGS) -c myhdl_vpi.c
|
||||
|
||||
# make rules for dynamic libaries
|
||||
myhdl_vpi.dylib: myhdl_vpi.o
|
||||
$(CC) $(LFLAGS) myhdl_vpi.o -o myhdl_vpi.dylib
|
||||
|
||||
clean:
|
||||
-rm *.o *.so
|
@ -126,7 +126,7 @@ def _addUserCode(hdl, arg, code, namespace, sourcefile, funcname, sourceline):
|
||||
|
||||
|
||||
def _isListOfSigs(obj):
|
||||
if obj != None and isinstance(obj, list):
|
||||
if obj is not None and isinstance(obj, list):
|
||||
for e in obj:
|
||||
if not isinstance(e, Signal):
|
||||
return False
|
||||
|
Loading…
x
Reference in New Issue
Block a user