Skip to content
This repository was archived by the owner on Oct 12, 2022. It is now read-only.

Commit 123072e

Browse files
committed
Quote variables in win64.mak
1 parent 01507d7 commit 123072e

File tree

1 file changed

+21
-21
lines changed

1 file changed

+21
-21
lines changed

win64.mak

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ SDKDIR=\Program Files (x86)\Microsoft SDKs\Windows\v7.0A
88
DMD_DIR=..\dmd
99
BUILD=release
1010
OS=windows
11-
DMD=$(DMD_DIR)\generated\$(OS)\$(BUILD)\$(MODEL)\dmd
11+
DMD="$(DMD_DIR)\generated\$(OS)\$(BUILD)\$(MODEL)\dmd"
1212

1313
CC="$(VCDIR)\bin\amd64\cl"
1414
LD="$(VCDIR)\bin\amd64\link"
@@ -51,68 +51,68 @@ OBJS_TO_DELETE= errno_c_$(MODEL).obj msvc_$(MODEL).obj msvc_math_$(MODEL).obj
5151
######################## Header file generation ##############################
5252

5353
import:
54-
$(MAKE) -f mak/WINDOWS import DMD="$(DMD)" IMPDIR="$(IMPDIR)"
54+
"$(MAKE)" -f mak/WINDOWS import DMD="$(DMD)" IMPDIR="$(IMPDIR)"
5555

5656
copydir:
57-
$(MAKE) -f mak/WINDOWS copydir IMPDIR="$(IMPDIR)"
57+
"$(MAKE)" -f mak/WINDOWS copydir IMPDIR="$(IMPDIR)"
5858

5959
copy:
60-
$(MAKE) -f mak/WINDOWS copy DMD="$(DMD)" IMPDIR="$(IMPDIR)"
60+
"$(MAKE)" -f mak/WINDOWS copy DMD="$(DMD)" IMPDIR="$(IMPDIR)"
6161

6262
################### C\ASM Targets ############################
6363

6464
errno_c_$(MODEL).obj : src\core\stdc\errno.c
65-
$(CC) -c -Fo$@ $(CFLAGS) src\core\stdc\errno.c
65+
"$(CC)" -c -Fo$@ $(CFLAGS) src\core\stdc\errno.c
6666

6767
msvc_$(MODEL).obj : src\rt\msvc.c win64.mak
68-
$(CC) -c -Fo$@ $(CFLAGS) src\rt\msvc.c
68+
"$(CC)" -c -Fo$@ $(CFLAGS) src\rt\msvc.c
6969

7070
msvc_math_$(MODEL).obj : src\rt\msvc_math.c win64.mak
71-
$(CC) -c -Fo$@ $(CFLAGS) src\rt\msvc_math.c
71+
"$(CC)" -c -Fo$@ $(CFLAGS) src\rt\msvc_math.c
7272

7373
################### Library generation #########################
7474

7575
$(DRUNTIME): $(OBJS) $(SRCS) win64.mak
76-
*$(DMD) -lib -of$(DRUNTIME) -Xfdruntime.json $(DFLAGS) $(SRCS) $(OBJS)
76+
*"$(DMD)" -lib "-of$(DRUNTIME)" -Xfdruntime.json $(DFLAGS) $(SRCS) $(OBJS)
7777

7878
# due to -conf= on the command line, LINKCMD and LIB need to be set in the environment
7979
unittest : $(SRCS) $(DRUNTIME)
80-
*$(DMD) $(UDFLAGS) -version=druntime_unittest -unittest -ofunittest.exe -main $(SRCS) $(DRUNTIME) -debuglib=$(DRUNTIME) -defaultlib=$(DRUNTIME) user32.lib
80+
*"$(DMD)" $(UDFLAGS) -version=druntime_unittest -unittest -ofunittest.exe -main $(SRCS) "$(DRUNTIME)" "-debuglib=$(DRUNTIME)" "-defaultlib=$(DRUNTIME)" user32.lib
8181
unittest
8282

8383
################### Win32 COFF support #########################
8484

8585
# default to 32-bit compiler relative to 64-bit compiler, link and lib are architecture agnostic
86-
CC32=$(CC)\..\..\cl
86+
CC32="$(CC)\..\..\cl"
8787

8888
druntime32mscoff:
89-
$(MAKE) -f win64.mak "DMD=$(DMD)" MODEL=32mscoff "CC=\$(CC32)"\"" "AR=\$(AR)"\"" "VCDIR=$(VCDIR)" "SDKDIR=$(SDKDIR)"
89+
"$(MAKE)" -f win64.mak DMD="$(DMD)" MODEL=32mscoff "CC=\$(CC32)"\"" "AR=\$(AR)"\"" VCDIR="$(VCDIR)" SDKDIR="$(SDKDIR)"
9090

9191
unittest32mscoff:
92-
$(MAKE) -f win64.mak "DMD=$(DMD)" MODEL=32mscoff "CC=\$(CC32)"\"" "AR=\$(AR)"\"" "VCDIR=$(VCDIR)" "SDKDIR=$(SDKDIR)" unittest
92+
"$(MAKE)" -f win64.mak DMD="$(DMD)" MODEL=32mscoff "CC=\$(CC32)"\"" "AR=\$(AR)"\"" VCDIR="$(VCDIR)" SDKDIR="$(SDKDIR)" unittest
9393

9494
################### tests ######################################
9595

9696
test_uuid:
97-
$(MAKE) -f test\uuid\win64.mak "DMD=$(DMD)" MODEL=$(MODEL) "VCDIR=$(VCDIR)" DRUNTIMELIB=$(DRUNTIME) test
97+
"$(MAKE)" -f test\uuid\win64.mak DMD="$(DMD)" MODEL="$(MODEL)" VCDIR="$(VCDIR)" DRUNTIMELIB="$(DRUNTIME)" test
9898

9999
test_aa:
100-
$(DMD) -m$(MODEL) -conf= -Isrc -defaultlib=$(DRUNTIME) -run test\aa\src\test_aa.d
100+
"$(DMD)" -m$(MODEL) -conf= -Isrc "-defaultlib=$(DRUNTIME)" -run test\aa\src\test_aa.d
101101

102102
test_hash:
103-
$(DMD) -m$(MODEL) -conf= -Isrc -defaultlib=$(DRUNTIME) -run test\hash\src\test_hash.d
103+
"$(DMD)" -m$(MODEL) -conf= -Isrc "-defaultlib=$(DRUNTIME)" -run test\hash\src\test_hash.d
104104

105105
test_stdcpp:
106-
$(MAKE) -f test\stdcpp\win64.mak "DMD=$(DMD)" MODEL=$(MODEL) "VCDIR=$(VCDIR)" DRUNTIMELIB=$(DRUNTIME) "CC=$(CC)" test
106+
"$(MAKE)" -f test\stdcpp\win64.mak DMD="$(DMD)" MODEL=$(MODEL) VCDIR="$(VCDIR)" DRUNTIMELIB="$(DRUNTIME)" CC="$(CC)" test
107107

108108
test_gc:
109-
$(MAKE) -f test\gc\win64.mak "DMD=$(DMD)" MODEL=$(MODEL) "VCDIR=$(VCDIR)" DRUNTIMELIB=$(DRUNTIME) "CC=$(CC)" test
109+
"$(MAKE)" -f test\gc\win64.mak DMD="$(DMD)" MODEL=$(MODEL) VCDIR="$(VCDIR)" DRUNTIMELIB="$(DRUNTIME)" CC="$(CC)" test
110110

111111
custom_gc:
112-
$(MAKE) -f test\init_fini\win64.mak "DMD=$(DMD)" MODEL=$(MODEL) "VCDIR=$(VCDIR)" DRUNTIMELIB=$(DRUNTIME) "CC=$(CC)" test
112+
"$(MAKE)" -f test\init_fini\win64.mak DMD="$(DMD)" MODEL=$(MODEL) VCDIR="$(VCDIR)" DRUNTIMELIB="$(DRUNTIME)" CC="$(CC)" test
113113

114114
test_loadlib:
115-
$(DMD) -m$(MODEL) -conf= -Isrc -defaultlib=$(DRUNTIME) -run test\shared\src\loadlibwin.d
115+
"$(DMD)" -m$(MODEL) -conf= -Isrc "-defaultlib=$(DRUNTIME)" -run test\shared\src\loadlibwin.d
116116

117117
test_all: test_uuid test_aa test_hash test_stdcpp test_gc custom_gc test_loadlib
118118

@@ -130,8 +130,8 @@ install: druntime.zip
130130
unzip -o druntime.zip -d \dmd2\src\druntime
131131

132132
clean:
133-
del $(DRUNTIME) $(OBJS_TO_DELETE)
134-
rmdir /S /Q $(DOCDIR) $(IMPDIR)
133+
del "$(DRUNTIME)" $(OBJS_TO_DELETE)
134+
rmdir /S /Q "$(DOCDIR)" "$(IMPDIR)"
135135

136136
auto-tester-build: target
137137

0 commit comments

Comments
 (0)