Skip to content

cpp: Fix compiler not supporting experimental features#10981

Open
ubruhin wants to merge 1 commit intoslint-ui:masterfrom
LibrePCB:cpp-pass-experimental-to-compiler
Open

cpp: Fix compiler not supporting experimental features#10981
ubruhin wants to merge 1 commit intoslint-ui:masterfrom
LibrePCB:cpp-pass-experimental-to-compiler

Conversation

@ubruhin
Copy link
Contributor

@ubruhin ubruhin commented Mar 9, 2026

It was already possible to set SLINT_FEATURE_EXPERIMENTAL=ON from CMake, but this effectively didn't run the Slint compiler with the environment variable SLINT_ENABLE_EXPERIMENTAL_FEATURES=1. So it was not possible to use experimental features like DragArea. This patch will set that environment variable if experimental features are enabled in CMake.

We already had this patch for a long time in LibrePCB, so I thought it's time to contribute it upstream ;)

I hope this is a desired change. Just let me know if I should change anything.

It was already possible to set SLINT_FEATURE_EXPERIMENTAL=ON from CMake,
but this effectively didn't run the Slint compiler with the environment
variable SLINT_ENABLE_EXPERIMENTAL_FEATURES=1. So it was not possible
to use experimental features like DragArea. This patch will set that
environment variable if experimental features are enabled in CMake.
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