Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: support Zig versions 0.11.0 and 0.12.0 #271

Merged
merged 30 commits into from
Apr 23, 2024
Merged

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Apr 22, 2024

Closes #255

  • Check that the automatic version replacements make sense.

github-actions bot and others added 26 commits April 22, 2024 00:09
This is required by Zig 0.12. Additionally Zig 0.12 will require a -M
flag for the main module.
Zig SDK 0.12 places stricter meaning on the order of command-line flags:
The first module to be declared is considered the main module.
Module specific options, such as configuration or target settings have
to be listed before the module that they affect.
This ordering is requried for Zig 0.12
This is requried to avoid errors of the form
```
INFO: From Building zig-docs/main.zig as Zig shared library bazel-out/k8-fastbuild/bin/zig-docs/libshared-library.so:
invalid filename
!2 = distinct !DICompileUnit(language: DW_LANG_C99, file: !3, producer: "zig 0.12.0", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, enums: !4, globals: !229, splitDebugInlining: false)
!3 = !DIFile(filename: "", directory: "/home/aj/.cache/bazel/_bazel_aj/0deefcb713c28fbc7261691ef6069b08/sandbox/linux-sandbox/200/execroot/_main/zig-docs")
warning: ignoring invalid debug info in BitcodeBuffer
```
Configuration that is meant to be global, not just per module, needs to
be set at the end of the command line.
@aherrmann aherrmann changed the title chore: update Zig versions up to 0.12.0 feat: support Zig versions 0.11.0 and 0.12.0 Apr 22, 2024
It fails for unknown reasons. The error is
```
error: unknown file type for an object file
    note: while parsing bazel-out/darwin_x86_64-fastbuild/bin/_solib_darwin_x86_64/_U_S_Slink-dependencies_Sshared-library_Cadd_Ushared___Ulink-dependencies_Sshared-library/libadd.dylib
```
https://github.com/aherrmann/rules_zig/actions/runs/8790823749/job/24123729064?pr=271#step:10:120
It fails for unknown reasons. The error is
```
error: unable to open directory '/var/tmp/zig-cache/b/cb9becf646f63b0941e2ca559689c01a/': FileNotFound
```
https://github.com/aherrmann/rules_zig/actions/runs/8795816766/job/24137565986?pr=271#step:10:72
@aherrmann aherrmann merged commit 3bde0bd into main Apr 23, 2024
27 checks passed
@aherrmann aherrmann deleted the zig-update-0.12.0 branch April 23, 2024 19:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant