From 4dfd0651457ad433c4103f20a0fd1e1bb9538282 Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Mon, 18 Oct 2021 21:29:57 +0300 Subject: 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. --- README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'README.md') 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`. -- cgit v1.2.1