WARNING: This is a work in progress
Compiling the client requires Zig 0.11 or later.
To simply build the client:
zig build
If you want to run and test the client:
zig build run
Note: The setup process is outdated, and currently planned to be rewritten.
While My Simulation uses NioTSO's C headers directly, you can still compile tools that make use of them. In this case, it is recommend to use Zig's C/C++ compiler as a backend.
CC="zig cc" CXX="zig c++" cmake -B build
cd build && make -j8
On Unix-based systems, you can add it to your .bashrc
or .zshrc
file.
# C/C++ Linker
export CC="zig cc"
export CXX="zig c++"
Afterwards, you can pass the same commands without.
cmake -B build && cd build && make -j8
At bare minium, My Simulation's C/C++ libaries require make and cmake. Generate the build files:
cd library # Or cd tools
cmake
Afterwards, comile the software:
make
Coming soon!