Skip to content

Commit ec26d79

Browse files
committed
cmake: lua requires c99
1 parent 8570cc4 commit ec26d79

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

cmake/DaemonFlags.cmake

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -208,9 +208,11 @@ else()
208208
if (USE_RECOMMENDED_C_STANDARD)
209209
# GNU89 or later standard is required when building gzip or the compiler
210210
# will complain about implicitly defined lseek, read, write and close.
211-
try_c_flag(GNU89 "-std=gnu89")
212-
if (NOT FLAG_GNU89)
213-
message(FATAL_ERROR "GNU89 or C99 not supported by compiler")
211+
# GNU99 or later standard is required when building lua or lua will
212+
# complain that the compiler doesn't support 'long long'.
213+
try_c_flag(GNU99 "-std=gnu99")
214+
if (NOT FLAG_GNU99)
215+
message(FATAL_ERROR "GNU99 or C99 not supported by compiler")
214216
endif()
215217
endif()
216218

0 commit comments

Comments
 (0)