mirror of
https://github.com/Interlisp/maiko.git
synced 2026-02-26 08:43:40 +00:00
Switch to compiling as ISO C99 + GNU extensions. (#203)
We currently build for ISO C90 with GNU extensions. The GNU extensions include both library and language features. Compiling without GNU extensions results in a number of compilation failures due to use of those library features. With this, we'll build for ISO C99 with the GNU extensions and can evaluate what's going on with those library features in the future.
This commit is contained in:
@@ -3,7 +3,7 @@ CMAKE_MINIMUM_REQUIRED(VERSION 3.15)
|
||||
|
||||
SET(CMAKE_EXPORT_COMPILE_COMMANDS ON)
|
||||
|
||||
SET(CMAKE_C_STANDARD 90)
|
||||
SET(CMAKE_C_STANDARD 99)
|
||||
|
||||
IF(CMAKE_C_COMPILER_ID MATCHES "Clang" OR CMAKE_COMPILER_ID MATCHES "GNU")
|
||||
IF(UNIX AND CMAKE_GENERATOR STREQUAL "Ninja")
|
||||
|
||||
@@ -14,8 +14,8 @@ AR = ar rcv
|
||||
ANSICC = $(CC)
|
||||
|
||||
# Compiler flags
|
||||
CLANG_CFLAGS = -std=gnu89 -funsigned-char -fno-strict-aliasing -fwrapv
|
||||
GCC_CFLAGS = -std=gnu89 -funsigned-char -fno-strict-aliasing -fwrapv
|
||||
CLANG_CFLAGS = -std=gnu99 -funsigned-char -fno-strict-aliasing -fwrapv
|
||||
GCC_CFLAGS = -std=gnu99 -funsigned-char -fno-strict-aliasing -fwrapv
|
||||
|
||||
# for the files that need to be included in byte-swapped implementations:
|
||||
BYTESWAPFILES =
|
||||
|
||||
Reference in New Issue
Block a user