mirror of
https://github.com/dexoron/dcr.git
synced 2026-10-21 16:39:37 +00:00
- `sharedlib` build kind (shared library output) - ASM projects (`build.language = "asm"`) - NASM and GAS backends - `build.platform` architecture hint for `-march` / `/arch` - Basic CLI integration tests
1.0 KiB
1.0 KiB
dcr build
Builds the project in debug or release profile.
Usage
dcr build
dcr build --debug
dcr build --release
What build does
- Checks that
dcr.tomlexists and is valid. - Reads build settings from
[build]. - Resolves path dependencies from
[dependencies]. - Creates required output directories.
- Recursively compiles sources from
src/. - Links final artifact (binary or library).
Config values used
package.namebuild.compilerbuild.languagebuild.standardbuild.kindbuild.targetbuild.platformbuild.cflagsbuild.ldflags
Source selection
language = "c"->*.clanguage = "c++" | "cpp" | "cxx"->*.cpp,*.cxx,*.cclanguage = "asm"->*.s,*.S,*.asm
Notes
- The profile is selected from the first argument only.
- Unknown profile flags return an error.
- Incremental rebuild is based on source/object mtime comparison.
- For
language = "asm"withcompiler = "as"/"gas", use.sfiles (no preprocessing). For.S, usegccorclang.