mirror of
https://github.com/dexoron/dcr.git
synced 2026-10-21 10:48:30 +00:00
882 B
882 B
Build section
Schema
[build]
language = "c"
standard = "c11"
compiler = "clang"
kind = "bin"
# optional:
# target = "./dist"
# cflags = ["-Wall"]
# ldflags = ["-lm"]
Fields
language(string, required):c,c++,cpp, orcxx.standard(string, required): language standard passed to compiler.compiler(string, required): compiler command (for exampleclang,gcc,cl).kind(string, required):binorstaticlib.target(string, optional): custom output directory for final artifact.cflags(string array, optional): extra compile flags.ldflags(string array, optional): extra link flags.
Behavior notes
- Compiler backend is selected by compiler string (
gcc,clang,cl,clang-cl). - Empty or unknown compiler value falls back to clang-like build path.
runis not allowed forkind = "staticlib".