RU
Добавлено:
dcr run -- <args>...— cargo-style: всё после bare--передаётся собранному бинарнику
(dcr run --release -- --test_help). Работает и для прямого запуска, и для[run].cmd.- Интеграционные / unit-тесты — host target sections применяют
ldflagsбез--target; проброс аргументов после--; парсерsplit_double_dash.
Изменено:
- Native-сборка резолвит host triple — без
--target/ безbuild.targetконфиг-секции вида
[build.x86_64-unknown-linux-gnu](и аналоги host) снова применяются (cflags/ldflags/ toolchain).
Раньше target был «пустым», секции молча игнорировались, а артефакты уже лежали под host triple — линковка без-L/-l. - Пустой target —
normalize_target_os("")больше не warn'итUnknown target ''. dcr run --help/ mandcr-run— документирован разделитель--и forwarding args.
Исправлено:
- Нативные пути артефактов на Windows и macOS — без явного
--target/build.targetартефакты снова сохраняются вtarget/<profile>, поэтомуdcr runи flat-bin находят результат сборки. - Target-specific
ldflagsна native Linux/macOS/Windows (host triple) не доходили до линкера. - Ложный warning на пустой target string.
EN
Added:
dcr run -- <args>...— cargo-style: arguments after a bare--are forwarded to the built binary
(dcr run --release -- --test_help). Works for direct binary runs and[run].cmd.- Tests — host target sections apply
ldflagswithout CLI--target; run-arg forwarding;split_double_dashunit tests.
Changed:
- Native builds resolve the host triple — without
--target/ without packagebuild.target, host sections such as
[build.x86_64-unknown-linux-gnu](and host equivalents) apply again (cflags/ldflags/ toolchain).
Previously the target was empty, those sections were silently ignored while artifacts already used the host triple path — link failed without-L/-l(e.g. sandbox micro-lang +libsct-elf). - Empty target —
normalize_target_os("")no longer warnsUnknown target ''. dcr run --help/ mandcr-run— document--and argument forwarding.
Fixed:
- Native artifact paths on Windows and macOS — without an explicit
--target/build.target, artifacts again usetarget/<profile>, sodcr runand flat-bin find the build output. - Target-specific
ldflagson native host builds not reaching the linker. - Spurious warning for an empty target string.