update build.zig for zig 0.12.0-dev.3635+786876c05 #1
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi,
first off: thanks for this library, tried it out in one of my projects and it works pretty nice.
I'm using pretty much the latest zig on my project right now (zig 0.12.0-dev.3635+786876c05), and there were some errors while building.
target
to thebuildExamples
function which requires astd.zig.CrossTarget
type doesn't work (anymore). It throws this error:Instead I just changed it to require
std.Build.ResolvedTarget
. Not really sure if this is the right way, but it builds.Without this:
it is not possible to import
prettytable
inside of other projects depending on it. It worked for the examples because there it was added as a private module to them (createModule
only creates a private module). With the lines above however, importing it in external projects works.Additionally, this can just be passed on to the
buildExamples
function and used as module for the examples, removing the need to callcreateModule
again.FileSource
(which was recently renamed toLazyPath
in zig),Builder
andCrossTarget