Skip to content

Commit

Permalink
small: fix small compilation
Browse files Browse the repository at this point in the history
If SMALL_EMBEDDED is used, "small" will try to compile
with the default flags, but it can't be compiled with std=c89.
Look like a "small" library bug.
So, we will use std=c99 globally as workaround.

Part of #59
  • Loading branch information
LeonidVas committed Jun 3, 2020
1 parent 0f31abe commit b1e2d94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ find_package(CyrusSASL)
# include(cmake/FindTarantool.cmake)
include_directories(${TARANTOOL_INCLUDE_DIRS})

set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -std=c99")

find_program(GIT git)
if (EXISTS "${CMAKE_SOURCE_DIR}/.git" AND GIT)
Expand Down

0 comments on commit b1e2d94

Please sign in to comment.