Skip to content

Latest commit

 

History

History
69 lines (46 loc) · 1.2 KB

compiling.md

File metadata and controls

69 lines (46 loc) · 1.2 KB

Compiling

WARNING: This is a work in progress

Client

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

Libaries & Tools

Note: The setup process is outdated, and currently planned to be rewritten.

Zig Backend (Optional)

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

Building

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

Server

Coming soon!