summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorIvan Maidanski <ivmai@mail.ru>2019-07-17 10:08:12 +0300
committerIvan Maidanski <ivmai@mail.ru>2019-07-17 10:44:29 +0300
commit75fddffc0859dd769a49f6a413008e4ebd15a37d (patch)
treec642ed7294afa1344363ed6d4428c15abe0e5918 /doc
parentcb41dc5f66356cfebcac8ea0cfc388b324ca4252 (diff)
downloadbdwgc-75fddffc0859dd769a49f6a413008e4ebd15a37d.tar.gz
Enable CMake-based build for Borland and Watcom compilers
Issue #105 (bdwgc). * CMakeLists.txt [BORLAND] (add_compile_options): Specify /a4 and /w /w-pro /w-aus /w-par /w-ccc /w-inl /w-rch; add comment. * CMakeLists.txt [WATCOM] (add_compile_options): Specify /zp4 and /wx. * CMakeLists.txt [enable_werror && BORLAND] (add_compile_options): Specify /w!. * CMakeLists.txt [enable_werror && WATCOM] (add_compile_options): Specify /we. * CMakeLists.txt [!enable_single_obj_compilation && !BUILD_SHARED_LIBS && BORLAND] (add_compile_options): Specify /w-use; add comment. * CMakeLists.txt [build_tests && WATCOM] (gctest): Specify /wcd=13 /wcd=201 /wcd=367 /wcd=368 /wcd=726 target compile options; add comment. * doc/README.win32 (Watcom compiler): Mention that OpenWatcom 2.0 is tested on; remove note that cord is not ported; add note about the new way to build the collector using CMake script.
Diffstat (limited to 'doc')
-rw-r--r--doc/README.win328
1 files changed, 5 insertions, 3 deletions
diff --git a/doc/README.win32 b/doc/README.win32
index 67b14763..f05fb9c6 100644
--- a/doc/README.win32
+++ b/doc/README.win32
@@ -106,7 +106,7 @@ Watcom compiler
Ivan V. Demakov's README for the Watcom port:
-The collector has been compiled with Watcom C 10.6 and 11.0.
+The collector has been tested with Watcom C 10.6, 11.0 and OpenWatcom 2.0.
It runs under win32, win32s, and even under msdos with dos4gw
dos-extender. It should also run under OS/2, though this isn't
tested. Under win32 the collector can be built either as dll
@@ -118,8 +118,6 @@ attempt has been made) leads to broken executables.
Incremental collection is supported (except for MSDOS and OS/2).
-cord is not ported.
-
Before compiling you may need to edit WCC_MAKEFILE to set target
platform, library type (dynamic or static), calling conventions, and
optimization options.
@@ -134,6 +132,10 @@ If the gc is compiled as dll, the macro "GC_DLL" should be defined before
including "gc.h" (for example, with -DGC_DLL compiler option). It's
important, otherwise resulting programs will not run.
+The alternate way to compile the collector is to use cmake build system:
+ cmake -G "Watcom WMake" .
+ cmake --build .
+
Special note for OpenWatcom users: the C (unlike the C++) compiler (of the
latest stable release, not sure for older ones) doesn't force pointer global
variables (i.e. not struct fields, not sure for locals) to be aligned unless