build-system/tree-sitter: Build with -std=c11.

* guix/build/tree-sitter-build-system.scm (install): Switch to
building with -std=c11.

Fixes: guix/guix#2215
Change-Id: I04f3ede07aeaaa9cf95272611d6346295f603b69
Signed-off-by: Danny Milosavljevic <dannym@friendly-machines.com>
This commit is contained in:
Brian Kubisiak 2025-08-30 04:43:52 -07:00 committed by Danny Milosavljevic
parent a43303a2dd
commit 325689d036
No known key found for this signature in database
GPG key ID: E71A35542C30BAA5

View file

@ -120,7 +120,7 @@ and replace development dependencies with tree-sitter grammar node modules."
;; provided.
,@(cond
((source-file "src/scanner.c")
=> (lambda (file) (list "-xc" "-std=c99" file)))
=> (lambda (file) (list "-xc" "-std=c11" file)))
((source-file "src/scanner.cc")
=> (lambda (file) (list file)))
(else '()))