mirror of
https://github.com/libuv/libuv
synced 2025-03-28 21:13:16 +00:00
build: switch from c90 to c11
After 14 years that should be fairly safe, right? Right!? Fixes: https://github.com/libuv/libuv/issues/4742
This commit is contained in:
parent
ea1cf034be
commit
7218a472fc
@ -20,7 +20,7 @@ include(CTest)
|
||||
set(CMAKE_C_VISIBILITY_PRESET hidden)
|
||||
set(CMAKE_C_STANDARD_REQUIRED ON)
|
||||
set(CMAKE_C_EXTENSIONS ON)
|
||||
set(CMAKE_C_STANDARD 90)
|
||||
set(CMAKE_C_STANDARD 11)
|
||||
|
||||
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
|
||||
|
||||
|
@ -33,7 +33,7 @@ CC_ATTRIBUTE_VISIBILITY([default], [
|
||||
# we exclude -fno-strict-aliasing for xlc
|
||||
CC_CHECK_FLAG_SUPPORTED_APPEND([-fno-strict-aliasing])
|
||||
CC_CHECK_CFLAGS_APPEND([-g])
|
||||
CC_CHECK_CFLAGS_APPEND([-std=gnu89])
|
||||
CC_CHECK_CFLAGS_APPEND([-std=c11])
|
||||
CC_CHECK_CFLAGS_APPEND([-Wall])
|
||||
CC_CHECK_CFLAGS_APPEND([-Wextra])
|
||||
CC_CHECK_CFLAGS_APPEND([-Wno-long-long])
|
||||
|
Loading…
x
Reference in New Issue
Block a user