From 89a837d3c7ef73be0b9f9ea907b0c435080d68fc Mon Sep 17 00:00:00 2001 From: Don Williams Date: Mon, 29 Dec 2025 12:00:53 -0500 Subject: [PATCH] Still fixing hyprwire build errors On branch development Your branch is up to date with 'origin/development'. Changes to be committed: modified: hyprwire.sh --- install-scripts/hyprwire.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/install-scripts/hyprwire.sh b/install-scripts/hyprwire.sh index 2c6ad8f..8641c87 100755 --- a/install-scripts/hyprwire.sh +++ b/install-scripts/hyprwire.sh @@ -47,12 +47,12 @@ if git clone --recursive -b "$tag" https://github.com/hyprwm/hyprwire.git; then cat > append_range_compat.hpp <<'EOF' #pragma once #include -#define APPEND_RANGE(vec, rng) (vec).insert((vec).end(), std::begin((rng)), std::end((rng))) +#define APPEND_RANGE(vec, ...) (vec).insert((vec).end(), std::begin(__VA_ARGS__), std::end(__VA_ARGS__)) EOF # Replace X.append_range(Y) -> APPEND_RANGE(X, Y) - git ls-files '*.cpp' | xargs sed -ri 's/([A-Za-z_][A-Za-z0-9_]*)\.append_range\(/APPEND_RANGE(\1, /g' +git ls-files | grep -E '\\.(c|cc|cpp|cxx|h|hh|hpp)$' | xargs sed -ri 's/([A-Za-z_][A-Za-z0-9_]*)\.append_range\(/APPEND_RANGE(\1, /g' - cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr/local -DCMAKE_CXX_FLAGS="-include ${PWD}/append_range_compat.hpp" +cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr/local -DCMAKE_CXX_STANDARD=23 -DCMAKE_CXX_FLAGS="-include ${PWD}/append_range_compat.hpp" cmake --build build -j "$(nproc 2>/dev/null || getconf _NPROCESSORS_CONF)" if [ $DO_INSTALL -eq 1 ]; then if sudo cmake --install build 2>&1 | tee -a "$MLOG" ; then