mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-03-13 09:31:57 +01:00
Use `-std=c++17` when compiling xetex_layout crate. Resolves build error
with icu 76.1.
```
cargo:warning=In file included from /usr/include/unicode/ubidi.h:26,
cargo:warning= from layout/xetex-XeTeXLayoutInterface.cpp:36:
cargo:warning=/usr/include/unicode/localpointer.h:561:26: error: 'auto' parameter not permitted in this context
cargo:warning= 561 | template <typename Type, auto closeFunction>
cargo:warning= | ^~~~
cargo:warning=/usr/include/unicode/localpointer.h:573:76: error: template argument 2 is invalid
cargo:warning= 573 | explicit LocalOpenPointer(std::unique_ptr<Type, decltype(closeFunction)> &&p)
cargo:warning= | ^
cargo:warning=/usr/include/unicode/localpointer.h:583:78: error: template argument 2 is invalid
cargo:warning= 583 | LocalOpenPointer &operator=(std::unique_ptr<Type, decltype(closeFunction)> &&p) {
cargo:warning= | ^
cargo:warning=/usr/include/unicode/localpointer.h:599:59: error: template argument 2 is invalid
cargo:warning= 599 | operator std::unique_ptr<Type, decltype(closeFunction)> () && {
cargo:warning= | ^
cargo:warning=/usr/include/unicode/ubidi.h:579:1: note: invalid template non-type parameter
cargo:warning= 579 | U_DEFINE_LOCAL_OPEN_POINTER(LocalUBiDiPointer, UBiDi, ubidi_close);
cargo:warning= | ^~~~~~~~~~~~~~~~~~~~~~~~~~~
```
28 lines
899 B
Diff
28 lines
899 B
Diff
Patch-Source: https://github.com/tectonic-typesetting/tectonic/pull/1202/commits/d260961426b01f7643ba0f35f493bdb671eeaf3f
|
|
|
|
Fix `'auto' parameter not permitted in this context` error when building
|
|
against icu 76.1.
|
|
---
|
|
From d260961426b01f7643ba0f35f493bdb671eeaf3f Mon Sep 17 00:00:00 2001
|
|
From: Winston H <56998716+winstxnhdw@users.noreply.github.com>
|
|
Date: Wed, 26 Jun 2024 07:05:10 +0800
|
|
Subject: [PATCH] fix: use c++ 17
|
|
|
|
---
|
|
crates/xetex_layout/build.rs | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/crates/xetex_layout/build.rs b/crates/xetex_layout/build.rs
|
|
index bdd0d03fc..558fd29e1 100644
|
|
--- a/crates/xetex_layout/build.rs
|
|
+++ b/crates/xetex_layout/build.rs
|
|
@@ -86,7 +86,7 @@ fn main() {
|
|
let mut cppcfg = cc::Build::new();
|
|
|
|
let cppflags = [
|
|
- "-std=c++14",
|
|
+ "-std=c++17",
|
|
"-Wall",
|
|
"-Wdate-time",
|
|
"-Wendif-labels",
|