Added:
-
build.cxx_standard— separate C++ language standard for.cpp/.cxx/.ccfiles. When set, overridesbuild.standardfor C++ sources. Example:[build] language = ["c", "c++"] standard = "gnu11" cxx_standard = "gnu++17" -
Variable substitution for
cflags,ldflags, andincludedirectory entries. All{version},{version_major},{name},{profile}and other step variables are now available. Example:[build] cflags = ['-DPROJECT_VERSION="{version}"'] -
FreeBSD build support in CI — new
run_bsdworkflow input andbuild-bsdjob that cross-compilesx86_64-unknown-freebsdviacargo-zigbuild.
Changed:
- License changed from MIT to GPL-3.0-or-later. All source files now carry
the GPL-3.0 header. Default license in
dcr new/dcr initchanged to"GPL-3.0-or-later". README, FAQ, and CONTRIBUTING.md updated accordingly. -
get_list_with_profile_and_targetno longer duplicates list values wheninherit = trueand the profile/target value is identical to the base value.
Fixed:
- Multi-language
languagearray (e.g.["c", "c++", "asm"]) no longer dropsc++during internal parsing —.cxx/.cpp/.ccsource files are correctly discovered and compiled. -
-std=flag is no longer passed to C++ files when onlystandard(C standard) is configured — usescxx_standardwhen available, otherwise skips-std=for C++ sources, avoiding clang errorinvalid argument '-std=c11' not allowed with 'C++'. - Object file collision: source files with the same stem but different extensions
(e.g.
gdt.cxxandgdt.S) no longer overwrite each other. Object filenames now include the original source extension (e.g.gdt.cxx.o,gdt.S.o). - MSVC backend compile step now detects language per source file extension instead
of using the global
languagefield, fixing mixed C/C++ compilation with MSVC. - Assembler
-xflag inunix_cc.rsandgen.rsis now placed before the source file, as required by clang/gcc. -
{version}variables inbuild.cleanare now correctly substituted.