Skip to content

Commit e3c0e20

Browse files
committed
.cargo/config.toml: set CFLAGS='-std=gnu17'
to make onig compile with GCC 15, which by default uses a newer C standard (C23)
1 parent a5a9f7d commit e3c0e20

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.cargo/config.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
1+
# spell-checker:ignore CFLAGS
2+
13
[target.x86_64-unknown-redox]
24
linker = "x86_64-unknown-redox-gcc"
35

46
[env]
57
PROJECT_NAME_FOR_VERSION_STRING = "uutils coreutils"
8+
# TODO remove when there is an onig version > 6.4.0, https://github.com/rust-onig/rust-onig/issues/196
9+
CFLAGS='-std=gnu17'

0 commit comments

Comments
 (0)