mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-28 06:59:46 -05:00
build: build with C23 if supported
This lets us conditionally leverage C23 features. Force one build to C11 in CI to make sure we stay C11-compatible.
This commit is contained in:
parent
3880ee15d7
commit
85875c47d9
2 changed files with 2 additions and 2 deletions
|
|
@ -27,7 +27,7 @@ tasks:
|
|||
- setup: |
|
||||
cd wlroots
|
||||
CC=gcc meson setup build-gcc --fatal-meson-warnings --default-library=both -Dauto_features=enabled --prefix /usr -Db_sanitize=address,undefined
|
||||
CC=clang meson setup build-clang --fatal-meson-warnings -Dauto_features=enabled
|
||||
CC=clang meson setup build-clang --fatal-meson-warnings -Dauto_features=enabled -Dc_std=c11
|
||||
- gcc: |
|
||||
cd wlroots/build-gcc
|
||||
ninja
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue