Skip to content
This repository has been archived by the owner on May 18, 2019. It is now read-only.

Commit

Permalink
Add 32/64 bit version.
Browse files Browse the repository at this point in the history
  • Loading branch information
adeas31 authored and OpenModelica-Hudson committed Nov 22, 2016
1 parent bd46362 commit b781dc9
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions Makefile.omdev.mingw
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,11 @@ FMILIB_SHARED = OFF
CMINPACKLIB_SHARED = OFF

CONFIG_REVISION = $(shell git describe --match "v*.*" --always)
ifeq (MINGW32,$(findstring MINGW32,$(shell uname)))
PLATFORM_ARCH = (32-bit)
else # mingw64
PLATFORM_ARCH = (64-bit)
endif

getMSVCversion:
echo "Check for given VSVERSION (2010|2012|2013|2015) version: [VSVERSION=$(VSVERSION)]"
Expand Down Expand Up @@ -134,12 +139,12 @@ ifeq ($(CONFIG_REVISION),)
else # revision is not empty, update it if it changed
@if test -f revision.h; \
then \
echo "#define CONFIG_REVISION \"OpenModelica $(CONFIG_REVISION)\"" > revision.h.tmp; diff revision.h revision.h.tmp > /dev/null; \
echo "#define CONFIG_REVISION \"OpenModelica $(CONFIG_REVISION) $(PLATFORM_ARCH)\"" > revision.h.tmp; diff revision.h revision.h.tmp > /dev/null; \
if [ $$? -eq 0 ]; then echo No change in revision; rm revision.h.tmp; \
else echo Revision has changed. updating revision.h; \mv revision.h.tmp revision.h; touch Compiler/runtime/omc_config.h; \
fi; \
else \
echo "#define CONFIG_REVISION \"OpenModelica $(CONFIG_REVISION)\"" > revision.h; echo Retrieved revision number. revision.h was created; \
echo "#define CONFIG_REVISION \"OpenModelica $(CONFIG_REVISION) $(PLATFORM_ARCH)\"" > revision.h; echo Retrieved revision number. revision.h was created; \
fi;
endif

Expand Down

0 comments on commit b781dc9

Please sign in to comment.