You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: win64.mak
+13-40Lines changed: 13 additions & 40 deletions
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
# Makefile to build D runtime library phobos64.lib for Win64
1
+
# Makefile to build D runtime library phobos{64,32mscoff}.lib for Windows MSVC
2
2
# Prerequisites:
3
3
# Microsoft Visual Studio
4
4
# Targets:
@@ -10,32 +10,28 @@
10
10
# Delete unneeded files created by build process
11
11
# make unittest
12
12
# Build phobos64.lib, build and run unit tests
13
-
# make phobos32mscoff
14
-
# Build phobos32mscoff.lib
15
-
# make unittest32mscoff
16
-
# Build phobos32mscoff.lib, build and run unit tests
17
13
# make cov
18
14
# Build for coverage tests, run coverage tests
15
+
# make MODEL=32mscoff phobos32mscoff.lib
16
+
# Build phobos32mscoff.lib (with x86 cl.exe in PATH, otherwise set CC & AR manually)
19
17
20
-
## Memory model (32 or 64)
18
+
## Memory model (32mscoff or 64)
21
19
MODEL=64
22
20
23
-
## Copy command
21
+
## Assume MSVC cl.exe & lib.exe in PATH are set up for the target MODEL.
22
+
## Otherwise set them explicitly, e.g., to `C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\bin\Hostx86\x86\cl.exe`.
23
+
CC=cl
24
+
AR=lib
24
25
25
-
CP=cp
26
+
MAKE=make
26
27
27
28
## Directory where dmd has been installed
28
29
29
30
DIR=\dmd2
30
31
31
-
## Visual C directories
32
-
VCDIR=\Program Files (x86)\Microsoft Visual Studio 10.0\VC
0 commit comments