From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from [87.239.111.99] (localhost [127.0.0.1]) by dev.tarantool.org (Postfix) with ESMTP id AFF6D2553C; Fri, 11 Nov 2022 12:09:10 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org AFF6D2553C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1668157750; bh=9KNs5wLDSYNHpQ32rVfL/ucHGpP94LHNGZJGiumEzr8=; h=Date:To:Cc:References:In-Reply-To:Subject:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=s0iVjQ64MDAizLefu7cKUQOaTiqFR0/d/8Jp9oPiqixUUXGRneBVNRYbCb3FQBx9t 1bHEgTRIOaGo5HQWNJduUvB/V/E4B/WP6pV6u4pdtxqIfGWBvLQid6YqqbMO8iR9jK JDrepWZ3BZ9oieBVoV59KC7YEdFpmCYrNbT5iUNE= Received: from smtpng2.i.mail.ru (smtpng2.i.mail.ru [94.100.179.3]) (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 D4D1E70370 for ; Fri, 11 Nov 2022 12:07:31 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org D4D1E70370 Received: by smtpng2.m.smailru.net with esmtpa (envelope-from ) id 1otQ0Z-0005Ds-34; Fri, 11 Nov 2022 12:07:31 +0300 Date: Fri, 11 Nov 2022 11:54:50 +0300 To: Sergey Kaplun , Maxim Kokryashkin Cc: tarantool-patches@dev.tarantool.org Message-ID: References: <701de8c1cd6ee15f42062c1d07dc133834bab5db.1664723361.git.imun@tarantool.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <701de8c1cd6ee15f42062c1d07dc133834bab5db.1664723361.git.imun@tarantool.org> X-Clacks-Overhead: GNU Terry Pratchett X-Mailru-Src: smtp X-4EC0790: 10 X-7564579A: B8F34718100C35BD X-77F55803: 4F1203BC0FB41BD9D880D530162779F1E9358FD791A8CB5134573456D969A3BB182A05F538085040457F4B454D1696F96C4BA691488992ACECFABD5B1A8415684B5AF3DB35D39981 X-7FA49CB5: FF5795518A3D127A4AD6D5ED66289B5278DA827A17800CE7EC0B1A4921CAE631EA1F7E6F0F101C67BD4B6F7A4D31EC0BCC500DACC3FED6E28638F802B75D45FF8AA50765F790063795AFAF91F541EBCE8638F802B75D45FF36EB9D2243A4F8B5A6FCA7DBDB1FC311F39EFFDF887939037866D6147AF826D80291D4CAAA6FA5B73C8786B8CFF6E550117882F4460429724CE54428C33FAD305F5C1EE8F4F765FC1F8789D36234D406A471835C12D1D9774AD6D5ED66289B52BA9C0B312567BB23117882F4460429728776938767073520599709FD55CB46A6F04B652EEC242312D2E47CDBA5A96583BA9C0B312567BB231DD303D21008E29813377AFFFEAFD269A417C69337E82CC2E827F84554CEF50127C277FBC8AE2E8BA83251EDC214901ED5E8D9A59859A8B60E26A56DB46E81E4089D37D7C0E48F6C5571747095F342E88FB05168BE4CE3AF X-C8649E89: 4E36BF7865823D7055A7F0CF078B5EC49A30900B95165D34C1E32F4AD4B2486BB1DA61C8C90471D15C538C00D3D34763D10D4EFD87D503DEBE58CCA29DE5F5781D7E09C32AA3244C9698E80878EA95E2A8BFEDFC774BC0FD7101BF96129E4011927AC6DF5659F194 X-D57D3AED: 3ZO7eAau8CL7WIMRKs4sN3D3tLDjz0dLbV79QFUyzQ2Ujvy7cMT6pYYqY16iZVKkSc3dCLJ7zSJH7+u4VD18S7Vl4ZUrpaVfd2+vE6kuoey4m4VkSEu530nj6fImhcD4MUrOEAnl0W826KZ9Q+tr5ycPtXkTV4k65bRjmOUUP8cvGozZ33TWg5HZplvhhXbhDGzqmQDTd6OAevLeAnq3Ra9uf7zvY2zzsIhlcp/Y7m53TZgf2aB4JOg4gkr2biojSqkc8Nj21UN8kiQH9SSOvQ== X-DA7885C5: 9004B979AF4AF49ED091295B06203FF13D580BD4C44951CCAFF3CF41DF96E9F7262E2D401490A4A0DB037EFA58388B346E8BC1A9835FDE71 X-Mailru-Sender: 689FA8AB762F7393CC2E0F076E87284E200334251D72EB1BE1BB97C6DED9DA4AA7C8D0F45F857DBFE9F1EFEE2F478337FB559BB5D741EB964C8C2C849690F8E70A04DAD6CC59E3365FEEDEB644C299C0ED14614B50AE0675 X-Mras: Ok Subject: Re: [Tarantool-patches] [PATCH luajit] build: introduce LUAJIT_ENABLE_CHECKHOOK option X-BeenThere: tarantool-patches@dev.tarantool.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Igor Munkin via Tarantool-patches Reply-To: Igor Munkin Errors-To: tarantool-patches-bounces@dev.tarantool.org Sender: "Tarantool-patches" I've checked the patch into all long-term branches in tarantool/luajit and bumped a new version in master, 2.10 and 1.10. On 02.10.22, Igor Munkin wrote: > Originally there is nether a special option nor a variable to configure > check for instrunction/line hooks for compiled code via the build system > being used. We finally decided to use this feature in Tarantool, so for > convenient managing LUAJIT_ENABLE_CHECKHOOK option is added to the root > project CMakeLists.txt. > > Needed for tarantool/tarantool#7762 > > Signed-off-by: Igor Munkin > --- > > Issue: https://github.com/tarantool/tarantool/issues/7762 > Branch: https://github.com/tarantool/luajit/tree/imun/luajit-enable-checkhook > CI: https://github.com/tarantool/luajit/commit/701de8c > > CMakeLists.txt | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/CMakeLists.txt b/CMakeLists.txt > index 8b49f9d7..c870cce2 100644 > --- a/CMakeLists.txt > +++ b/CMakeLists.txt > @@ -180,6 +180,11 @@ if(LUAJIT_ENABLE_GC64) > AppendFlags(TARGET_C_FLAGS -DLUAJIT_ENABLE_GC64) > endif() > > +option(LUAJIT_ENABLE_CHECKHOOK "Check instruction/line hooks for compiled code" OFF) > +if(LUAJIT_ENABLE_CHECKHOOK) > + AppendFlags(TARGET_C_FLAGS -DLUAJIT_ENABLE_CHECKHOOK) > +endif() > + > # Disable memory profiler. > option(LUAJIT_DISABLE_MEMPROF "LuaJIT memory profiler support" OFF) > if(LUAJIT_DISABLE_MEMPROF) > -- > 2.34.0 > -- Best regards, IM