Compiler
Basic usage:
zeen <source> <output>| Flag | Description |
|---|---|
-m, --mode |
Debug (default) or Release |
--emit |
BIN (default), OBJ, IR, MIR |
--target <TRIPLE> |
Compilation target triple (see --targets-list) |
--std <PATH> |
Std library project root, the directory containing src (default: $ZEEN_STD, ~/.zeen/std, then share/zeen/std) |
--linker-path <PROGRAM> |
Override the detected linker |
--pkg NAME=PATH |
Map a package name to a source directory (repeatable) |
--link <LIB> |
Link an extra native library, e.g. raylib (repeatable) |
--link-dir <PATH> |
Add a native library search directory (repeatable) |
--check |
Run all checks without codegen |
--no-warns |
Disable compiler warnings |
--no-color |
Disable colored output |
--targets-list |
List supported target triples |
Examples
Section titled “Examples”zeen main.zn output -m Releasezeen main.zn output.ll --emit IRzeen main.zn output --target x86_64-pc-windows-gnuzeen main.zn game --link raylibzeen main.zn --check