Skip to content

Commit

Permalink
Improve detection of 32 bit versions of ModelSim. (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-adler authored and Abelardo Jara-Berrocal committed Nov 13, 2017
1 parent d96cdcb commit 1e29720
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions ase/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -168,13 +168,15 @@ MENT_COMMAND = $(shell command -v vsim)
## GCC version
GCC_VERSION_GT_49 = $(shell gcc -dumpversion | gawk '{print $$1>=4.9?"1":"0"}')

## For ModelSim figure out whether it is the 32 bit starter edition
## For ModelSim figure out whether it is a 32 bit edition
CC_INT_SIZE=-m64
ifeq ($(SIMULATOR), QUESTA)
ifdef MENT_COMMAND
# Assume 32 bit edition unless "vsim -version" indicates -64
CC_INT_SIZE=-m32
MENT_VERSION=$(shell vsim -version)
ifneq (,$(findstring STARTER EDITION, $(MENT_VERSION)))
CC_INT_SIZE=-m32
ifneq (,$(findstring -64, $(MENT_VERSION)))
CC_INT_SIZE=-m64
endif
endif
endif
Expand Down

0 comments on commit 1e29720

Please sign in to comment.