CompileFlags:
  Add:
    - --target=wasm32-wasip1
    - -D_GNU_SOURCE
    - -fno-exceptions
    - -fno-stack-protector
    - -fvisibility=hidden
    - -mbulk-memory
    - -mextended-const
    - -mrelaxed-simd
    - -msimd128
    - -mtail-call
    - -msign-ext
    - -mnontrapping-fptoint
    - -mreference-types
    - -Wall
    - -Wextra
    - -Wpedantic
    - -Wshadow
    - -Wconversion
    - -Werror
---
If:
  PathMatch: .*\.[ch]
CompileFlags:
  Add: [-std=gnu23]
---
If:
  PathMatch: .*\.(cpp|cc|cxx|hpp|hxx)
CompileFlags:
  Add: [-std=gnu++26, -fno-rtti]
