← Back to list
name: "mach-compiler-commands"
description: "How to use the
Dependency management (

mach-compiler-commands
by octalide
A low-level, compiled, statically typed programming language.
⭐ 75🍴 1📅 Jan 19, 2026
SKILL.md
name: "mach-compiler-commands"
description: "How to use the cmach toolchain: build/run/dep commands, options, and practical examples."
Purpose
Actionable reference for common cmach commands, options, and dependency workflows used in this repository.
cmach overview
- Common subcommands:
init,build,run,dep,help. - Build options of note:
--target <name>— select named target; note: forbuildthis flag appears in help but the implementation currently does not parse it — build selects the project default target frommach.toml(or the first target).-o <file>— set output file path-m <path>— set module path (e.g.std.print) for single-file builds-I prefix=dir— add include/search prefix
Build/run examples
- Build a project (example):
out/bin/cmach build . -o out/bin/myapp
- Run the built target (arguments are passed to the executable; there is no special
--separator):
out/bin/cmach run . arg1 arg2
# or to select a specific target defined in mach.toml:
out/bin/cmach run --target <target> . arg1 arg2
- Typical repo make targets:
make cmach # build bootstrap compiler -> out/bin/cmach
make imach # runs "$(CMACH) build . -o out/linux/bin/imach" (intermediate stage; incomplete)
make mach # pipeline continuation/scaffolding (incomplete)
Dependency management (cmach dep)
cmach dep list— show current depscmach dep info <name>— show metadatacmach dep tidy— clean unused deps (submodule maintenance)cmach dep add [--local] <path> <name> [--version <version>]— add dependency (local or remote); note:dep addvendors the dependency immediatelycmach dep del <name>— remove dependencycmach dep pull [name]— fetch/update
Version formats: examples recognized by cmach dep include:
branch/main— track a specific branchcommit/<hash>— specific commit^1.2.3— semver caret (>=1.2.3 <2.0.0)~1.2.3— semver tilde (>=1.2.3 <1.3.0)1.2.3— exact semver tag
Example: temporarily use a local stdlib for testing (run from the consuming project):
cmach dep add --local /ABS/PATH/TO/mach-std mach-std
# test changes, then revert before commit
cmach dep del mach-std
Troubleshooting & tips
- Use
cmach helpto list full subcommand options. - Inspect
out/artifacts for build results and logs. - If build failures appear after changing compiler or stdlib, rebuild the bootstrap compiler and intermediate stages in sequence.
Score
Total Score
60/100
Based on repository quality metrics
✓SKILL.md
SKILL.mdファイルが含まれている
+20
✓LICENSE
ライセンスが設定されている
+10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
Reviews
💬
Reviews coming soon