Initial setup: ./init.sh
will install the following into deps/
:
- ckit build tool and rbase library
- ckit-jemalloc memory allocator
- zlib static library
- llvm+clang tools and static libraries
Build:
- Unoptimized with all checks enabled:
ckit build co
- Optimized with assertions:
ckit build -safe co
- Optimized without assertions:
ckit build -fast co
- RT test program:
ckit watch -r co-rt-test
- Verbose build:
ckit build -v
- Build everything:
ckit build
Development and testing:
- Run all tests:
./test.sh
- Run all tests live:
./test.sh -w
- Run unit test with prefix "scan":
./test.sh scan
- Run unit test with prefix "scan" live:
./test.sh -w scan
- Live main program:
ckit watch -rsh="{BUILD}/co build example/hello.co" co
Note: debug builds have the following checks and features enabled:
- All assertions (both "safe" and "debug")
- Clang address sanitizer
- Clang undefined-behavior sanitizer
R_TEST
unit tests (main executable runs all tests on start)