Skip to content

[pull] master from LMMS:master#173

Merged
pull[bot] merged 2 commits into
AKJUS:masterfrom
LMMS:master
Jul 15, 2026
Merged

[pull] master from LMMS:master#173
pull[bot] merged 2 commits into
AKJUS:masterfrom
LMMS:master

Conversation

@pull

@pull pull Bot commented Jul 15, 2026

Copy link
Copy Markdown

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

tresf and others added 2 commits July 15, 2026 16:07
Switch DMG packaging tool
Fix unreported SDL3 dependency issue
Bumps the minimum x86_64 microarchitecture level for nightly builds from x86_64-v1 (which includes up to SSE2) to x86_64-v2 (which includes up to SSE4.2) and similarly bumps the arm64 microarchitecture target for nightly builds depending on the OS. This is done using new CMake options that control the target microarchitecture level. Also fixes the symbol visibility when compiling with GCC or Clang.

Both of these changes have the potential for performance improvements, and will also let us write conditionally-enabled SIMD code targeting newer microarchitectures with better capabilities than the compiler baseline of SSE2/NEON.

Changes:
- Adds `TARGET_UARCH` and `TARGET_UARCH_FLAGS` CMake options for setting the target CPU microarchitecture
  - Allows LMMS builds to target newer CPUs, letting the compiler make use of instruction set extensions like SSE4.2 or POPCNT
  - The options for `TARGET_UARCH` are: "none", "official", "custom", and "native"
  - These options mean:
    - "none": No microarchitecture level is set. Uses the compiler default (i.e. x86_64-v1).
    - "official": Targets the baseline microarchitecture level of official LMMS releases (On x86_64, this is x86_64-v2, which was agreed upon as a new baseline on Discord. The arm64 baseline differs depending on the target OS).
    - "custom": Targets the microarchitecture specified by `TARGET_UARCH_FLAGS`.
    - "native": Targets the highest microarchitecture level supported by the build machine.
  - If no option is provided, it defaults to "native" so local builds are highly optimized by default
  - All automated builds explicitly use "official"
  - Choosing "none" has the same effect as prior to this PR
  - Added a CMake function called `determine_msvc_native_arch` which provides a workaround for the lack of a `/arch:native` flag in MSVC. This function has been tested on x86_64, but not on arm64 since we don't support MSVC on arm64 yet.
- Changes symbol visibility when using GCC/Clang from default (where all symbols are exported from shared library or executable) to hidden (where only symbols marked with LMMS_EXPORT are exported)
  - Matches the behavior on Windows
  - According to GCC's documentation, doing this "very substantially improves load times of your DSO (Dynamic Shared Object)", "lets the optimiser produce better code", and "reduces the size of your DSO by 5-20%". In actuality, our AppImage size shrunk from 155 MB to 154.3 MB, so the size improvements are not very significant, though there may still be performance benefits.
@pull pull Bot locked and limited conversation to collaborators Jul 15, 2026
@pull pull Bot added the ⤵️ pull label Jul 15, 2026
@pull
pull Bot merged commit a2fc6c8 into AKJUS:master Jul 15, 2026
1 check failed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants