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

Commit b1d71cc

Browse files
WalterBrightdlang-bot
authored andcommitted
add documentation to win64.mak
1 parent e7a6fe1 commit b1d71cc

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

win64.mak

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,29 @@
1-
# Makefile to build D runtime library druntime{64,32mscoff}.lib for Windows MSVC
1+
# Makefile to build D runtime library lib\druntime64.lib for 64 bit Windows and
2+
# lib\druntime32mscoff.lib for 32 bit Windows. Both are for use with the MSVC toolchain.
23

3-
# Set this to `32mscoff` for a 32-bit build.
4+
# Determines whether lib\druntime32mscoff.lib is built or lib\druntime64.lib
5+
# Set to `32mscoff` for a 32-bit build, `64` for 64-bit build.
46
MODEL=64
57

68
# Assume MSVC cl.exe in PATH is set up for the target MODEL.
79
# Otherwise set it explicitly, e.g., to `C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\bin\Hostx86\x86\cl.exe`.
810
CC=cl
911

1012
DMD_DIR=..\dmd
13+
1114
BUILD=release
1215
OS=windows
16+
17+
# The D compiler used to build things
1318
DMD=$(DMD_DIR)\generated\$(OS)\$(BUILD)\$(MODEL)\dmd
1419

1520
DOCDIR=doc
1621
IMPDIR=import
1722

23+
# Make program to use. Designed to be run with make.exe which can be obtained from
24+
# http://downloads.dlang.org/other/dm857c.zip
1825
MAKE=make
26+
1927
HOST_DMD=dmd
2028

2129
DFLAGS=-m$(MODEL) -conf= -O -release -preview=dip1000 -preview=fieldwise -preview=dtorfields -inline -w -Isrc -Iimport
@@ -53,6 +61,9 @@ copy:
5361

5462
################### C\ASM Targets ############################
5563

64+
# Although dmd is compiling the .c files, the preprocessor used is cl.exe. The INCLUDE
65+
# environment variable needs to be set with the path to the VC system include files.
66+
5667
errno_c_$(MODEL).obj: src\core\stdc\errno.c
5768
$(DMD) -c -of=$@ $(DFLAGS) -v -P=-I. src\core\stdc\errno.c
5869

0 commit comments

Comments
 (0)