From 5a156b1b9155f406e2539c1ee63e5e35105cbb60 Mon Sep 17 00:00:00 2001 From: Don Williams Date: Thu, 9 Oct 2025 10:54:15 -0400 Subject: [PATCH] Adjusting compiler to use clang On branch hl-051 Your branch is up to date with 'origin/hl-051'. Changes to be committed: modified: install-scripts/hyprland.sh --- install-scripts/hyprland.sh | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/install-scripts/hyprland.sh b/install-scripts/hyprland.sh index 7eb4e3c..f7147a1 100755 --- a/install-scripts/hyprland.sh +++ b/install-scripts/hyprland.sh @@ -100,7 +100,19 @@ USE_SYSTEM=${USE_SYSTEM_HYPRLIBS:-1} # Make sure submodules are present when building bundled deps git submodule update --init --recursive || true - cmake -S . -B build -DCMAKE_BUILD_TYPE=Release "${SYSTEM_FLAGS[@]}" + # Force Clang toolchain to support required language features and flags + export CC="${CC:-clang}" + export CXX="${CXX:-clang++}" + CONFIG_FLAGS=( + -DCMAKE_BUILD_TYPE=Release + -DCMAKE_C_COMPILER="${CC}" + -DCMAKE_CXX_COMPILER="${CXX}" + -DCMAKE_CXX_STANDARD=26 + -DCMAKE_CXX_STANDARD_REQUIRED=ON + -DCMAKE_CXX_EXTENSIONS=ON + "${SYSTEM_FLAGS[@]}" + ) + cmake -S . -B build "${CONFIG_FLAGS[@]}" cmake --build build -j "$(nproc 2>/dev/null || getconf _NPROCESSORS_CONF)" if [ $DO_INSTALL -eq 1 ]; then