Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix calling win makefiles w/ MODEL=32 #6585

Merged
merged 1 commit into from
Mar 3, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions src/win32.mak
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@

############################### Configuration ################################

# fixed model for win32.mak, overriden by win64.mak
MODEL=32

##### Directories

# DMC directory
Expand Down Expand Up @@ -128,7 +131,7 @@ BFLAGS=
# D Optimizer flags
DOPT=
# D Model flags
DMODEL=
DMODEL=-m$(MODEL)
# D Debug flags
DDEBUG=-debug -g -unittest

Expand All @@ -142,7 +145,7 @@ MFLAGS=-I$C;$(TK) $(OPT) -DMARS -cpp $(DEBUG) -e -wx -DTARGET_WINDOS=1 -DDM_TARG
DFLAGS=$(DOPT) $(DMODEL) $(DDEBUG) -wi -version=MARS

# Recursive make
DMDMAKE=$(MAKE) -fwin32.mak C=$C TK=$(TK) ROOT=$(ROOT) MAKE="$(MAKE)" HOST_DC="$(HOST_DC)" DMODEL=$(DMODEL) CC="$(CC)" LIB="$(LIB)" OBJ_MSVC="$(OBJ_MSVC)"
DMDMAKE=$(MAKE) -fwin32.mak C=$C TK=$(TK) ROOT=$(ROOT) MAKE="$(MAKE)" HOST_DC="$(HOST_DC)" MODEL=$(MODEL) CC="$(CC)" LIB="$(LIB)" OBJ_MSVC="$(OBJ_MSVC)"

############################### Rule Variables ###############################

Expand Down
4 changes: 2 additions & 2 deletions src/win64.mak
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

MAKE=make
HOST_DC=dmd
DMODEL=-m64
MODEL=64

################################### Rules ####################################

Expand All @@ -17,7 +17,7 @@ D=ddmd
OBJ_MSVC=$D\strtold.obj $D\longdouble.obj $D\ldfpu.obj
DEPENDENCIES=$D\vcbuild\msvc-dmc.exe $D\vcbuild\msvc-lib.exe

MAKE_WIN32=$(MAKE) -f win32.mak MAKE="$(MAKE)" DMODEL=$(DMODEL) HOST_DC=$(HOST_DC) OBJ_MSVC="$(OBJ_MSVC)" CC=vcbuild\msvc-dmc LIB=vcbuild\msvc-lib
MAKE_WIN32=$(MAKE) -f win32.mak MAKE="$(MAKE)" MODEL=$(MODEL) HOST_DC=$(HOST_DC) OBJ_MSVC="$(OBJ_MSVC)" CC=vcbuild\msvc-dmc LIB=vcbuild\msvc-lib

################################## Targets ###################################

Expand Down