mirror of
https://github.com/dexoron/dcr.git
synced 2026-10-21 20:59:37 +00:00
888 B
888 B
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 static library).
Config values used
package.namebuild.compilerbuild.languagebuild.standardbuild.kindbuild.targetbuild.cflagsbuild.ldflags
Source selection
language = "c"->*.clanguage = "c++" | "cpp" | "cxx"->*.cpp,*.cxx,*.cc
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.