From 992e16221c6387a16a3aca676ea74ff395f41af2 Mon Sep 17 00:00:00 2001 From: Daniel Hofstetter Date: Fri, 16 May 2025 16:45:19 +0200 Subject: [PATCH] .cargo/config.toml: set CFLAGS='-std=gnu17' to make onig compile with GCC 15, which by default uses a newer C standard (C23) --- .cargo/config.toml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.cargo/config.toml b/.cargo/config.toml index c6aa20761..8593d78cd 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -1,5 +1,9 @@ +# spell-checker:ignore CFLAGS + [target.x86_64-unknown-redox] linker = "x86_64-unknown-redox-gcc" [env] PROJECT_NAME_FOR_VERSION_STRING = "uutils coreutils" +# TODO remove when there is an onig version > 6.4.0, https://github.com/rust-onig/rust-onig/issues/196 +CFLAGS='-std=gnu17'