From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtpng1.m.smailru.net (smtpng1.m.smailru.net [94.100.181.251]) (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 F110346970F for ; Thu, 28 Nov 2019 12:00:44 +0300 (MSK) Date: Thu, 28 Nov 2019 11:58:37 +0300 From: Igor Munkin Message-ID: <20191128085837.GA6675@tarantool.org> References: <20191127200720.11398-1-arkholga@tarantool.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20191127200720.11398-1-arkholga@tarantool.org> Subject: Re: [Tarantool-patches] [PATCH v3] build: enable LUAJIT_ENABLE_PAIRSMM by default List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Olga Arkhangelskaia Cc: tarantool-patches@dev.tarantool.org Olya, Thanks a lot, now the patch totally LGTM. Cced Kirill to proceed with the patch. On 27.11.19, Olga Arkhangelskaia wrote: > Turn on LUAJIT_ENABLE_PAIRSMM flag for tarantool build. > Now __pairs/__ipairs metamethods are available. > > Closes #4560 > --- > Branch:https://github.com/tarantool/tarantool/tree/OKriw/gh-4560-Enable-LUAJIT_ENABLE_LUA52COMPAT-when-bulding-luajit > v1:https://lists.tarantool.org/pipermail/tarantool-patches/2019-November/012586.html > v2:https://lists.tarantool.org/pipermail/tarantool-patches/2019-November/012626.html > Changes v2: > - fixed typos > Changes v3: > - fixed commit > - fixed issue num Side note: As Kostja mentioned in your recent patchset, the changelog ought to be sorted in a reverse order according to our contribution guide[1]. Please consider it for your further patches. > > cmake/luajit.cmake | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/cmake/luajit.cmake b/cmake/luajit.cmake > index 10df633d5..072db8269 100644 > --- a/cmake/luajit.cmake > +++ b/cmake/luajit.cmake > @@ -217,6 +217,7 @@ macro(luajit_build) > add_definitions(-DLUAJIT_USE_ASAN=1) > set (luajit_ldflags ${luajit_ldflags} -fsanitize=address) > endif() > + add_definitions(-DLUAJIT_ENABLE_PAIRSMM=1) > add_definitions(-DLUAJIT_SMART_STRINGS=1) > # Add all COMPILE_DEFINITIONS to xcflags > get_property(defs DIRECTORY PROPERTY COMPILE_DEFINITIONS) > -- > 2.20.1 (Apple Git-117) > -- Best regards, IM