diff options
| author | Robert Marko | 2025-04-18 10:26:29 +0000 |
|---|---|---|
| committer | Robert Marko | 2025-04-18 10:40:12 +0000 |
| commit | 8a86fb78235b5d7925b762b7b0934517890cc034 (patch) | |
| tree | 94245247b2fb7dc63ba8456a54782e60f1ec8653 | |
| parent | 594cfa86469c005972ba750614f5b3f1af84d0f6 (diff) | |
| download | jsonpath-8a86fb78235b5d7925b762b7b0934517890cc034.tar.gz | |
build: set GNU17 for lemon compilation
GCC15 has changed the default from GNU17 (Since GCC8) to GNU23 and this is
breaking lemon compilation.
So, simply set -std=gnu17 for lemon.c so it compiles again.
Link: https://github.com/openwrt/jsonpath/pull/4
Signed-off-by: Robert Marko <robimarko@gmail.com>
| -rw-r--r-- | CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index dbfbf5d..d82799a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -21,7 +21,7 @@ ENDIF() ADD_CUSTOM_COMMAND( OUTPUT contrib/lemon DEPENDS contrib/lemon.c contrib/lempar.c - COMMAND gcc -o contrib/lemon contrib/lemon.c + COMMAND gcc -std=gnu17 -o contrib/lemon contrib/lemon.c COMMENT "Generating lemon parser generator" ) |