Skip to content

Commit

Permalink
Fixed OS/MODEL detection for Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
lionello committed May 29, 2015
1 parent 687b047 commit 229e392
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions test/Makefile
Expand Up @@ -59,6 +59,24 @@
# considered to be enabled).
# default: (none, enabled)

ifeq (Windows_NT,$(OS))
ifeq ($(findstring WOW64, $(shell uname)),WOW64)
OS:=win64
MODEL:=64
else
OS:=win32
MODEL:=32
endif
endif
ifeq (Win_32,$(OS))
OS:=win32
MODEL:=32
endif
ifeq (Win_64,$(OS))
OS:=win64
MODEL:=64
endif

include ../src/osmodel.mak

export OS
Expand Down

0 comments on commit 229e392

Please sign in to comment.