diff --git a/flatpak/boostpfr-gcc-12-internal-compiler-error.patch b/flatpak/boostpfr-gcc-12-internal-compiler-error.patch new file mode 100644 index 00000000..109f01d9 --- /dev/null +++ b/flatpak/boostpfr-gcc-12-internal-compiler-error.patch @@ -0,0 +1,12 @@ +diff '--color=auto' -ru boostpfr-src/include/boost/pfr/detail/fields_count.hpp boostpfr-src.new/include/boost/pfr/detail/fields_count.hpp +--- boostpfr-src/include/boost/pfr/detail/fields_count.hpp 2024-12-01 09:48:39.376617081 +0100 ++++ boostpfr-src.new/include/boost/pfr/detail/fields_count.hpp 2024-12-01 09:46:36.850666519 +0100 +@@ -240,7 +240,7 @@ + + template + constexpr auto detect_fields_count_dispatch(size_t_, long, int) noexcept +- -> decltype(sizeof(T{})) ++ -> std::size_t + { + constexpr std::size_t middle = N / 2 + 1; + return detail::detect_fields_count(detail::multi_element_range{}, 1L); diff --git a/flatpak/io.github.wivrn.wivrn.yml.in b/flatpak/io.github.wivrn.wivrn.yml.in index 41da6acd..5d7ae322 100644 --- a/flatpak/io.github.wivrn.wivrn.yml.in +++ b/flatpak/io.github.wivrn.wivrn.yml.in @@ -192,6 +192,7 @@ modules: - type: shell commands: - cd deps/monado-src && ../../patches/apply.sh ../../patches/monado/* + - cd deps/boostpfr-src && ../../patches/apply.sh ../../flatpak/boostpfr-gcc-12-internal-compiler-error.patch - name: opencomposite buildsystem: cmake-ninja