mirror of
https://github.com/dexoron/dcr.git
synced 2026-10-21 16:09:41 +00:00
Added:
- Incremental builds (object caching by mtime) - `build.kind` with `staticlib` support - Custom output directory via `build.target`
This commit is contained in:
@@ -23,6 +23,7 @@ You can add custom compile and link flags in `[build]`:
|
||||
[build]
|
||||
compiler = "gcc"
|
||||
standard = "c99"
|
||||
kind = "bin"
|
||||
target = "./dist"
|
||||
cflags = ["-D_POSIX_C_SOURCE=200809L", "-Wall", "-Wextra", "-O2", "-Ilib/frecli"]
|
||||
ldflags = ["-Llib/frecli", "-lfrecli", "-lm"]
|
||||
@@ -40,3 +41,8 @@ frecli = { path = "./lib/frecli", include = ["."], lib = ["."], libs = ["frecli"
|
||||
## Source Discovery
|
||||
|
||||
DCR compiles all `.c`/`.cpp` files under `src/` recursively. The file containing `main()` can be in any subdirectory.
|
||||
|
||||
## Notes
|
||||
|
||||
- `dcr run` works only for `kind = "bin"`.
|
||||
- Incremental rebuild currently tracks source file changes only (`.c/.cpp`).
|
||||
|
||||
Reference in New Issue
Block a user