summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorIvan Maidanski <ivmai@mail.ru>2021-10-18 21:29:57 +0300
committerIvan Maidanski <ivmai@mail.ru>2021-10-18 21:29:57 +0300
commit4dfd0651457ad433c4103f20a0fd1e1bb9538282 (patch)
tree1069f844e60ee52dd54bdaec9b2f66d54ab9fb17 /README.md
parentc2ed10ed596f1ff15e5ffa5dfb2bbb16980c1004 (diff)
downloadbdwgc-4dfd0651457ad433c4103f20a0fd1e1bb9538282.tar.gz
Mention CMake-based build in README.md and README.QUICK
* README.QUICK (INSTALLATION): Mention Cygwin; describe CMake-based build shortly; reference README.cmake. * README.md (Installation and Portability): Describe CMake-based build shortly and build by direct gcc invocation.
Diffstat (limited to 'README.md')
-rw-r--r--README.md13
1 files changed, 13 insertions, 0 deletions
diff --git a/README.md b/README.md
index d47f7f07..5c1cbab8 100644
--- a/README.md
+++ b/README.md
@@ -200,6 +200,19 @@ build of `master` branch of the collector could look like:
Cloning of `libatomic_ops` is now optional provided the compiler supports
atomic intrinsics.
+Alternatively, the collector could be built with CMake, like this:
+
+ mkdir out
+ cd out
+ cmake ..
+ cmake --build .
+ ctest
+
+Finally, on most targets, the collector could be built and tested directly
+with a single compiler invocation, like this:
+
+ gcc -I include -o gctest tests/test.c extra/gc.c && ./gctest
+
Below we focus on the collector build using classic makefile.
For the Makefile.direct-based process, typing `make check` instead of `make`
will automatically build the collector and then run `setjmp_test` and `gctest`.