Repository navigation
Replace x.py build automation with Meson while retaining Cargo - #1055
Merged
Merged
Conversation
Signed-off-by: LunaStev <[email protected]>
Signed-off-by: LunaStev <[email protected]>
Signed-off-by: LunaStev <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Replace the root
x.pycommand dispatcher with Meson build definitions while retaining Cargo as the Rust build and dependency authority. The normal source build becomesmeson setup buildfollowed bymeson compile -C build; release packaging depends on the compiler build in the Meson graph.Meson now defines compiler-host/profile/LLVM-feature options, tests, distribution tasks, staged installation, Rust target provisioning and explicit cleanup. Platform-specific LLVM/CRT/runtime handling remains in focused Python helpers. CI compiler builds, cross packages and the FreeBSD guest use Meson, with pinned Meson/Ninja provisioning after each Python setup and updated cache inputs, including both named Windows Python setup steps.
Motivation
Fixes #1054.
This removes the custom automation entry point and its import-time target detection, while keeping Cargo's incremental dependency graph and existing platform acceptance policies. The former Tk selector is replaced by Meson's setup/configure options.
CONTRIBUTING.mdincludes the basic replacement commands. The rootdocs/directory is excluded from Git and retained locally; published documentation is maintained in wavefnd/wave-platform. Tracked references to local-only guides have been removed or replaced.Target and compatibility impact
target/<profile>/and explicit host output undertarget/<triple>/<profile>/. Preserve Rust 1.89.0, locked dependencies, two Cargo jobs, Windows feature/CRT selections and LLVM runtime path handling.bindir; website installers and the legacy std lookup path are unchanged.--whaleCLI remain unchanged.Validation
Local Linux amd64 validation with Rust 1.89.0 and LLVM 21.1.8:
meson test -C <build> --suite rust --print-errorlogs: workspace/all-target Rust regressions passed.meson test -C <build> --suite tooling --print-errorlogs: full tooling run completed 408 tests, with 380 passes and 28 conditional platform/capability skips. Subsequent focused runs cover the final changes, including the additional unknown-task regression.python3 -m unittest tools.test_meson tools.test_build_clean tools.test_freebsd_cache tools.test_msvc_package_tools tools.test_package_inputs: 24 tests passed.python3 -m unittest tools.test_meson.BuildEnvironmentTests tools.test_ci tools.test_freebsd_cache: 56 tests passed.python3 -m unittest tools.test_meson tools.test_ci: 58 tests passed after fixing the two Windows bootstrap omissions. The added workflow regression failed for both omissions before the fix and passes across CI/release/Nightly after it.meson test -C <build> --suite policy --print-errorlogs, Python compile checks, focused Ruff lint/format checks andgit diff --checkpassed.docs/files remain in the Git index, generated std API check and four documentation-generator unit tests passed, andgit diff --checkpassed. The 50-job CI result below applies to the preceding CI repair commit.Initial CI 40467229910 passed 48/50 jobs, including native packages for all nine targets. Both Windows build jobs stopped before compilation because their named Python setup steps lacked the Meson/Ninja installation step; this PR now includes that repair. CI 40628253453 completed successfully at commit
edf90cef968adf1f5d64e638a2c324f02d4a09a9: all 50 jobs succeeded, including both repaired Windows native build/test lanes and every package target. No release or Nightly publication was performed.Checklist
Signed-off-byline.std/.