From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp47.i.mail.ru (smtp47.i.mail.ru [94.100.177.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dev.tarantool.org (Postfix) with ESMTPS id 5A131431780 for ; Tue, 25 Aug 2020 16:21:57 +0300 (MSK) Date: Tue, 25 Aug 2020 16:21:50 +0300 From: Alexander Turenko Message-ID: <20200825132150.tetyh4tr46zy25ti@tkn_work_nb> References: <20200622181649.10100-1-huston.mavr@gmail.com> <20200727223734.cnxrdzik2cyt3ey4@tkn_work_nb> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Subject: Re: [Tarantool-patches] [PATCH] build: refactor static build process List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Mavr Huston Cc: tarantool-patches@dev.tarantool.org, yaroslav.dynnikov@gmail.com 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?