Feature/configurable arch baseline - #35
Open
pplupo wants to merge 1 commit into
Open
Conversation
Thread ARCH_TRIPLET/ARCH_MARCH_FLAGS build args through to the vcpkg toolchain invocation, matching the overlay triplets added in the core submodule, so a baseline x86-64 build can be produced by anyone who needs it without the team maintaining a second official toolchain. Signed-off-by: Peter P. Lupo <pplupo@gmail.com>
pplupo
force-pushed
the
feature/configurable-arch-baseline
branch
from
July 22, 2026 21:57
31ca9d0 to
7b1f0fc
Compare
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
Makes the target x86-64 microarchitecture baseline for Linux builds configurable, instead of hardcoding it. Adds vcpkg overlay triplets (
x64-linux-v2default,x64-linux-baselinefor plain x86-64) and threadsARCH_TRIPLET/ARCH_MARCH_FLAGSthrough the Docker bake config andbuild.sh.Why
Raising the official baseline to x86-64-v2 (SSE4.2/POPCNT) gives Qt and other vcpkg-built dependencies access to SIMD-optimized code paths instead of falling back to unoptimized generic code — but it drops support for older CPUs that predate v2. Rather than the team maintaining a second, permanently-tracked toolchain to support that hardware, this exposes the microarchitecture as a build-time parameter so anyone who needs a legacy build can produce one themselves from the same sources, without affecting the default build path.
Changes
core: addstriplets/x64-linux-v2.cmake(default) andtriplets/x64-linux-baseline.cmakevcpkg overlay triplets; wiresARCH_TRIPLET/ARCH_MARCH_FLAGSbuild args into the core cmake invocation in.docker/core.bake.Dockerfile.desktop-apps: same args threaded through.docker/desktop-apps.bake.Dockerfile's vcpkg/cmake invocation, since Qt is built there via the vcpkg manifest.ARCH_TRIPLET(defaultx64-linux-v2) andARCH_MARCH_FLAGS(default-march=x86-64-v2) inbuild/docker-bake.hclandbuild/linux/docker-bake.hcl, and exposes them as overridable environment variables inbuild/linux/build.sh.Usage
Default behavior is unchanged. To produce a baseline x86-64 build:
```sh
ARCH_TRIPLET=x64-linux-baseline ARCH_MARCH_FLAGS=-march=x86-64 ./build.sh
```
Scope / non-goals
Euro-Office/core#125
#35
Euro-Office/DesktopEditors#61