Skip to content

Commit

Permalink
cmake: lua requires c99
Browse files Browse the repository at this point in the history
  • Loading branch information
illwieckz committed Dec 19, 2024
1 parent 51e613b commit 18615a4
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions cmake/DaemonFlags.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -208,9 +208,11 @@ else()
if (USE_RECOMMENDED_C_STANDARD)
# GNU89 or later standard is required when building gzip or the compiler
# will complain about implicitly defined lseek, read, write and close.
try_c_flag(GNU89 "-std=gnu89")
if (NOT FLAG_GNU89)
message(FATAL_ERROR "GNU89 or C99 not supported by compiler")
# GNU99 or later standard is required when building lua or lua will
# complain that the compiler doesn't support 'long long'.
try_c_flag(GNU99 "-std=gnu99")
if (NOT FLAG_GNU99)
message(FATAL_ERROR "GNU99 or C99 not supported by compiler")
endif()
endif()

Expand Down

0 comments on commit 18615a4

Please sign in to comment.