Skip to content

package:native_toolchain_c v0.19.6

Pre-release
Pre-release

Choose a tag to compare

@dcharkes dcharkes released this 06 Nov 13:20
· 15 commits to main since this release
0ca7d67
  • Decode vswhere -utf8 output as streaming UTF-8, preserving localized
    installation paths and JSON. Other tools still default to the system encoding.
  • Preserve minor and patch components of iOS and macOS deployment targets in
    CBuilder and CLinker. Requires package:code_assets 2.2.0.
  • Support listing .h files in CBuilder.sources to track header changes as
    build dependencies without passing them to the compiler.
  • Default linkerOptions to LinkerOptions.manual() in CLinker.run when omitted so static archives link all symbols by default.
  • Fix LinkerOptions.treeshake on Windows for thousands of symbols: no longer
    pass an /INCLUDE: flag per symbol in addition to the generated
    module-definition file, which exceeded the Windows command-line length limit.
    The generated module-definition file also no longer names the DLL MyDLL.
  • Do not pass linker flags (-Wl,-encryptable, -Wl,-z,max-page-size=16384,
    -framework, and C++ standard library link flags) when compiling object files
    for static libraries (-c).
  • Fix environmentFromBatchFile, and with it finding the MSVC environment on
    Windows, when the NoDefaultCurrentDirectoryInExePath environment variable
    is set. The batch file was run by its bare file name, which cmd.exe then
    doesn't look for in the working directory, so the environment came back
    empty. It now runs as .\<name>.bat.
  • environmentFromBatchFile now throws a ProcessException if running the
    batch file fails, instead of returning an empty environment.