Skip to content

Commit d1a9551

Browse files
Switch to new build strategy for MPS on Windows.
1 parent 0451a89 commit d1a9551

File tree

4 files changed

+12
-71
lines changed

4 files changed

+12
-71
lines changed

sources/jamfiles/x86-win32-vc6-build.jam

+1-2
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,7 @@ LINKFLAGS ?= /NODEFAULTLIB
5151

5252
# External libraries linked with the dylan library
5353
# (via the Linker-Options: keyword in Sources/dylan/dylan.lid)
54-
rtlibs ?= kernel32.lib pentium-run-time.lib mmdw.lib mpsplinth.lib
55-
minvcrt.lib ;
54+
rtlibs ?= kernel32.lib pentium-run-time.lib minvcrt.lib ;
5655

5756
# External libraries linked with libraries other than the dylan library
5857
# (via the DylanLibrary function defined below)

sources/jamfiles/x86-win32-vc8-build.jam

+1-2
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,7 @@ LINKFLAGS ?= /NODEFAULTLIB /INCREMENTAL:NO /DEBUG /MANIFEST ;
5151

5252
# External libraries linked with the dylan library
5353
# (via the Linker-Options: keyword in Sources/dylan/dylan.lid)
54-
rtlibs ?= kernel32.lib pentium-run-time.lib mmdw.lib mpsplinth.lib
55-
minvcrt.lib ;
54+
rtlibs ?= kernel32.lib pentium-run-time.lib minvcrt.lib ;
5655

5756
# External libraries linked with libraries other than the dylan library
5857
# (via the DylanLibrary function defined below)

sources/lib/run-time/Makefile.win32

+6-67
Original file line numberDiff line numberDiff line change
@@ -38,28 +38,16 @@ CC = $(cc)
3838
LINKLIB = $(implib) /nologo /out:
3939
CFLAGS = $(cflags) $(cvarsmt) $(cdebug) /I$(INCLUDEDEST) /I. /I.. /I$(SDK4MEMORY_POOL_SYSTEM)\code $(OPEN_DYLAN_C_FLAGS) /DOPEN_DYLAN_PLATFORM_WINDOWS /DGC_USE_MPS /DOPEN_DYLAN_ARCH_X86 /DOPEN_DYLAN_BACKEND_HARP
4040
HEAPOBJS = heap-display.obj heap-utils.obj heap-trail.obj heap-order1.obj heap-order2.obj heap-table.obj
41-
OBJS = collector.obj break.obj $(HEAPOBJS) thread-utils.obj harp-support\x86-windows\runtime.obj windows-threads-primitives.obj windows-spy-interfaces.obj windows-harp-support.obj
41+
OBJS = collector.obj break.obj $(HEAPOBJS) thread-utils.obj harp-support\x86-windows\runtime.obj windows-threads-primitives.obj windows-spy-interfaces.obj windows-harp-support.obj mps-dylan.obj
4242
LIBFILE = pentium-run-time.lib
4343
USEROBJ = harp-support\x86-windows\dylan-support.obj
4444
USERLIB = dylan-support.lib
4545
MINCRT = minvcrt.lib
4646

4747
RUNTIMELIBDEST = $(LIBDEST)\pentium-run-time.lib
48-
MMDWDEST = $(LIBDEST)\mmdw.lib
49-
PLINTHDEST = $(LIBDEST)\mpsplinth.lib
5048
MINCRTDEST = $(LIBDEST)\minvcrt.lib
5149

52-
RELEASEMMDW = $(SDK4MEMORY_POOL_SYSTEM)\code\w3i3mv\hi\mmdw.lib
53-
RELEASEPLINTH = $(SDK4MEMORY_POOL_SYSTEM)\code\w3i3mv\hi\mpsplan.lib
54-
55-
DEBUGMMDW = debug-mmdw.lib
56-
DEBUGPLINTH = debug-mpsplan.lib
57-
58-
SYMBOLICMMDW = symbolic-mmdw.lib
59-
SYMBOLICPLINTH = mpsplan.lib
60-
6150
PLINTHOBJS = plinth.obj mpsiowin32.obj
62-
DYLANPLINTH = dylan-plinth.lib
6351

6452
!if defined(fullcrt)
6553
$(MINCRT):
@@ -72,11 +60,8 @@ rtsyms.obj: rtsyms.s
7260
as -n -o rtsyms.obj rtsyms.s
7361
!endif
7462

75-
$(DYLANPLINTH): $(PLINTHOBJS)
76-
$(LINKLIB)$(DYLANPLINTH) $(PLINTHOBJS)
77-
78-
$(LIBFILE): $(OBJS)
79-
$(LINKLIB)$(LIBFILE) $(OBJS)
63+
$(LIBFILE): $(OBJS) $(PLINTHOBJS)
64+
$(LINKLIB)$(LIBFILE) $(OBJS) $(PLINTHOBJS)
8065

8166
$(USERLIB): $(USEROBJ)
8267
$(LINKLIB)$(USERLIB) $(USEROBJ)
@@ -103,25 +88,6 @@ install-runtime: $(LIBFILE)
10388
pushd $(LIBDEST) & (del /q /f $(LIBFILE)) & popd
10489
copy $(LIBFILE) $(LIBDEST)
10590

106-
install-dylan-plinth: $(DYLANPLINTH)
107-
echo Building pentium run time: install-dylan-plinth
108-
if exist $(PLINTHDEST) del /q /f $(PLINTHDEST)
109-
copy $(DYLANPLINTH) $(PLINTHDEST)
110-
111-
install-ansi-plinth: $(SYMBOLICPLINTH)
112-
echo Building pentium run time: install-ansi-plinth
113-
if exist $(PLINTHDEST) del /q /f $(PLINTHDEST)
114-
copy $(SYMBOLICPLINTH) $(PLINTHDEST)
115-
116-
install-debug-ansi-plinth: $(DEBUGPLINTH)
117-
echo Building pentium run time: install-debug-ansi-plinth
118-
if exist $(PLINTHDEST) del /q /f $(PLINTHDEST)
119-
copy $(DEBUGPLINTH) $(PLINTHDEST)
120-
121-
install-plinth: install-dylan-plinth
122-
echo Building pentium run time: install-plinth
123-
124-
12591
!if defined(fullcrt)
12692
install-mincrt:
12793
echo Building pentium run time: install-mincrt (fullcrt)
@@ -132,42 +98,15 @@ install-mincrt: $(MINCRT)
13298
copy $(MINCRT) $(MINCRTDEST)
13399
!endif
134100

135-
install-mmdw:
136-
echo Building pentium run time: install-mmdw
137-
if exist $(MMDWDEST) del /q /f $(MMDWDEST)
138-
if not exist $(RELEASEMMDW) pushd $(SDK4MEMORY_POOL_SYSTEM)\code \
139-
& $(MAKE) /k /f w3i3mv.nmk mmdw.lib > $(BUILD_LOGS)\make-mmdw.log \
140-
& popd
141-
copy $(RELEASEMMDW) $(MMDWDEST)
142-
143-
install-symbolic-mmdw: $(SYMBOLICMMDW)
144-
echo Building pentium run time: install-symbolic-mmdw
145-
if exist $(MMDWDEST) del /q /f $(MMDWDEST)
146-
copy $(SYMBOLICMMDW) $(MMDWDEST)
147-
148-
install-debug-mmdw: $(DEBUGMMDW)
149-
echo Building pentium run time: install-debug-mmdw
150-
if exist $(MMDWDEST) del /q /f $(MMDWDEST)
151-
copy $(DEBUGMMDW) $(MMDWDEST)
152-
153-
154-
install-common-libs: ensure-dirs install-plinth install-userlib install-mincrt
155-
156-
157-
install-stripped: ensure-dirs install-mmdw install-runtime install-common-libs
158-
159-
install-debug: ensure-dirs install-debug-mmdw install-runtime install-common-libs
160-
161-
install-symbolic: ensure-dirs install-symbolic-mmdw install-runtime install-common-libs
162-
101+
install-common-libs: ensure-dirs install-userlib install-mincrt
163102

164-
install: ensure-dirs install-stripped install-build
103+
install: ensure-dirs install-runtime install-common-libs install-build
165104

166105
# Only delete the products that should be built by this makefile.
167106
# (The files runtime.obj & dylan-support.obj are checked out from HOPE)
168107
clean:
169108
pushd . & (del /f /q *collector.obj break.obj $(HEAPOBJS) thread-utils.obj windows-threads-primitives.obj windows-spy-interfaces.obj windows-harp-support.obj) & popd
170109
pushd . & (del /f /q *pentium-run-time.lib $(USERLIB)) & popd
171110
pushd . & (del /f /q $(MINCRT) mincrt.def) & popd
172-
pushd . & (del /f /q $(DYLANPLINTH) $(PLINTHOBJS)) & popd
111+
pushd . & (del /f /q $(PLINTHOBJS)) & popd
173112

sources/lib/run-time/mps-dylan.c

+4
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88
* for details.
99
*/
1010

11+
#ifdef OPEN_DYLAN_PLATFORM_WINDOWS
12+
#define CONFIG_PLINTH_NONE
13+
#endif
14+
1115
#include "mps.c"
1216
#include "fmtdy.c"
1317
#include "fmtno.c" // fmtdy "inherits" from fmtno.

0 commit comments

Comments
 (0)