From: "Timur Safin" <tsafin@tarantool.org> To: 'Alexander Turenko' <alexander.turenko@tarantool.org>, 'Olga Arkhangelskaia' <arkholga@tarantool.org> Cc: tarantool-patches@dev.tarantool.org Subject: Re: [Tarantool-patches] [PATCH] cmake: add LTO support for building luajit Date: Thu, 25 Jun 2020 12:19:55 +0300 [thread overview] Message-ID: <144f01d64ad1$ca678310$5f368930$@tarantool.org> (raw) In-Reply-To: <20200616173402.4m5nuqi4quernvho@tkn_work_nb> : From: Alexander Turenko <alexander.turenko@tarantool.org> : Subject: Re: [PATCH] cmake: add LTO support for building luajit : : > + # Enablibg LTO for luajit if DENABLE_LTO set. : > + if (${ENABLE_LTO}) : > +`......message(STATUS "Enablig LTO for luajit") : > + set (luajit_ld ${CMAKE_C_LINK_OPTIONS_IPO}) : > +`......set (luajit_cflags ${luajit_cflags} ${CFLAGS_LTO}) : > +`......set (CMAKE_AR ${AR_LTO}) : > endif() : : It seems I forgot to mention one point in the previous message. : : Please, set luajit_ar variable and use it below, not reassign CMAKE_AR. : `include(luajit)` directive does not open a new variables scope, so if : we'll reassign CMAKE_AR here, it may affect static libraries creation : for code outside luajit. We should not change outside build rules in : luajit.cmake. In general I'd agree with Sasha here, and would advise to introduce scoped variable, (if we were talking about average local variable), but here we are talking about CMAKE_* variable, which is toolchain, and better be used consistently across whole project. But this might be debatable, though... Timur
next prev parent reply other threads:[~2020-06-25 9:19 UTC|newest] Thread overview: 33+ messages / expand[flat|nested] mbox.gz Atom feed top 2020-03-12 10:05 Olga Arkhangelskaia 2020-03-12 10:10 ` Cyrill Gorcunov 2020-04-14 9:18 ` Igor Munkin 2020-04-14 9:59 ` Olga Arkhangelskaia 2020-04-14 12:32 ` Olga Arkhangelskaia 2020-04-14 17:00 ` Igor Munkin 2020-04-15 13:22 ` Olga Arkhangelskaia 2020-04-17 11:47 ` Igor Munkin 2020-04-17 14:41 ` Olga Arkhangelskaia 2020-04-27 23:04 ` Igor Munkin 2020-05-06 10:47 ` Olga Arkhangelskaia 2020-04-14 14:33 ` Olga Arkhangelskaia 2020-05-25 12:58 ` Sergey Bronnikov 2020-05-25 15:00 ` Olga Arkhangelskaia 2020-05-25 15:12 ` Olga Arkhangelskaia 2020-05-25 15:43 ` Sergey Bronnikov 2020-05-26 10:11 ` Igor Munkin 2020-05-27 10:01 ` Olga Arkhangelskaia 2020-06-16 1:02 ` Alexander Turenko 2020-06-16 11:36 ` Olga Arkhangelskaia 2020-06-16 12:01 ` Olga Arkhangelskaia 2020-06-16 17:34 ` Alexander Turenko 2020-06-25 9:19 ` Timur Safin [this message] 2020-06-16 18:31 ` Alexander Turenko 2020-06-29 20:16 ` Olga Arkhangelskaia 2020-06-16 12:53 ` Igor Munkin 2020-06-25 9:45 ` Timur Safin 2020-06-25 9:47 ` Timur Safin 2020-07-08 12:23 ` Alexander Turenko 2020-07-08 12:34 ` Kirill Yukhin 2020-07-08 12:42 ` Kirill Yukhin 2020-07-08 12:38 ` Alexander Turenko 2020-07-09 5:13 ` Olga Arkhangelskaia
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to='144f01d64ad1$ca678310$5f368930$@tarantool.org' \ --to=tsafin@tarantool.org \ --cc=alexander.turenko@tarantool.org \ --cc=arkholga@tarantool.org \ --cc=tarantool-patches@dev.tarantool.org \ --subject='Re: [Tarantool-patches] [PATCH] cmake: add LTO support for building luajit' \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox