From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id A00B82BC96 for ; Tue, 16 Oct 2018 14:09:06 -0400 (EDT) Received: from turing.freelists.org ([127.0.0.1]) by localhost (turing.freelists.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id GpzrcrhHizTf for ; Tue, 16 Oct 2018 14:09:06 -0400 (EDT) Received: from smtp32.i.mail.ru (smtp32.i.mail.ru [94.100.177.92]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTPS id DB82F1FC28 for ; Tue, 16 Oct 2018 14:09:05 -0400 (EDT) Date: Tue, 16 Oct 2018 21:09:02 +0300 From: Konstantin Osipov Subject: [tarantool-patches] Re: [PATCH v2 2/3] Add LTO support Message-ID: <20181016180902.GA5454@chai> References: <515a51f8bc9906e610e8ab45a4a84b3f985ec649.1539556251.git.alexander.turenko@tarantool.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <515a51f8bc9906e610e8ab45a4a84b3f985ec649.1539556251.git.alexander.turenko@tarantool.org> Sender: tarantool-patches-bounce@freelists.org Errors-to: tarantool-patches-bounce@freelists.org Reply-To: tarantool-patches@freelists.org List-help: List-unsubscribe: List-software: Ecartis version 1.0.0 List-Id: tarantool-patches List-subscribe: List-owner: List-post: List-archive: To: tarantool-patches@freelists.org Cc: Georgy Kirichenko , AKhatskevich * Alexander Turenko [18/10/15 10:15]: > From: AKhatskevich > > Added -DENABLE_LTO=ON/OFF cmake option, OFF by default. > > LTO speeds up cpu-intensive workloads by up to 20% (see [1] and [2]). > > Requirements for LTO enabling: to enable LTO, not "for LTO enabling". The same applies to cmake message: > +if(CMAKE_VERSION VERSION_LESS 3.9) > + message(FATAL_ERROR "cmake >= 3.9 is needed for LTO enabling") > +endif() > + > +# Set 'CMP0069 NEW' behaviour for this project to support > +# compilers other than Intel Compiler and suppress cmake > +# warnings on the unset policy. > +cmake_policy(SET CMP0069 NEW) Please describe what this policy is about, not only just what it is for. > + > +# Retain 'CMP0069 NEW' behaviour after > +# 'cmake_minimum_required(VERSION ...) in subprojects to > +# avoid cmake warnings on the unset policy. > +set(CMAKE_POLICY_DEFAULT_CMP0069 NEW) -- Konstantin Osipov, Moscow, Russia, +7 903 626 22 32 http://tarantool.io - www.twitter.com/kostja_osipov