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

Minor build.zig improvements #677

Closed
wants to merge 3 commits into from
Closed

Conversation

linusg
Copy link
Contributor

@linusg linusg commented Nov 10, 2024

No description provided.

@ivmai
Copy link
Owner

ivmai commented Nov 10, 2024

Okay, thank you, I will review and test it in several days.

@ivmai
Copy link
Owner

ivmai commented Nov 10, 2024

Is this working with zig v0.12.0? If not (but working with 0.13.0) then we need to update zig_min_required_version.

@linusg
Copy link
Contributor Author

linusg commented Nov 10, 2024

This uses no recent features and will work with Zig 0.12, yes.

ivmai pushed a commit that referenced this pull request Nov 12, 2024
ivmai pushed a commit that referenced this pull request Nov 12, 2024
(refactoring)

PR #677 (bdwgc).

* build.zig [enable_cplusplus] (build): Remove `gccpp_src_files`
variable.
* build.zig [enable_cplusplus && enable_throw_bad_alloc_library]
(build): Remove `gctba_src_files` variable.
* build.zig [build_cord] (build): Remove `cord_src_files` variable.
ivmai pushed a commit that referenced this pull request Nov 12, 2024
PR #677 (bdwgc).

* build.zig (build): Define `gc` variable as const (and assign it only
once); set `gccpp`, `gctba` and `cord` variables to `undefined`
initially; do not invoke `b.addStaticLibrary()` if `build_shared_libs`.
@ivmai
Copy link
Owner

ivmai commented Nov 12, 2024

Merged.

@ivmai ivmai closed this Nov 12, 2024
@linusg linusg deleted the build-zig-tweaks branch November 12, 2024 16:54
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.

2 participants