[Tarantool-patches] [PATCH] build: refactor static build process
Alexander Turenko
alexander.turenko at tarantool.org
Tue Aug 25 16:21:50 MSK 2020
Thanks for fixes and added comments!
> diff --git a/static-build/CMakeLists.txt b/static-build/CMakeLists.txt
> index 86582af0a..53ceb609c 100644
> --- a/static-build/CMakeLists.txt
> +++ b/static-build/CMakeLists.txt
> @@ -9,11 +9,18 @@ set(NCURSES_VERSION 6.2)
> set(READLINE_VERSION 8.0)
> set(UNWIND_VERSION 1.3-rc1)
>
> -find_program(C_COMPILER gcc)
> -find_program(CXX_COMPILER g++)
> +if (APPLE)
> + find_program(C_COMPILER clang)
> + find_program(CXX_COMPILER clang++)
> +else()
> + find_program(C_COMPILER gcc)
> + find_program(CXX_COMPILER g++)
> +endif()
How about just don't set it at all?
More information about the Tarantool-patches
mailing list