translate-c build step lacks a way to link system libraries #20649
Labels
enhancement
Solving this issue will likely involve adding new logic or components to the codebase.
translate-c
C to Zig source translation feature (@cImport)
zig build system
std.Build, the build runner, `zig build` subcommand, package management
Milestone
Example of not being able to import certain .h files due to limitations of the build system step:
In the compiler,
zig translate-c
is handled with generally the same code path asbuild-obj
,build-exe
, andbuild-lib
. It branches off near the end.std.Build.Step.TranslateC
either needs to be absorbed by, or duplicate a large portion of the API ofstd.Build.Step.Compile
.Furthermore, there is interest in reducing the amount of unique C imports. Perhaps the build system API should provide some mechanism that can help modules from different packages coordinate about this.
Related to #7687.
The text was updated successfully, but these errors were encountered: