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 AE6526F3C8; Sun, 2 Oct 2022 18:21:12 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org AE6526F3C8 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1664724072; bh=vgbOjin0UoGT2d+aPBVihrAubnISSSp1PqR4KUarrOw=; h=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:Cc:From; b=oQplC+sRGBTWyOv6ra6B6Zf4tRLj2KZsUVd6z0Z4sFxFmDfBWuqNJfK+bMhHR9s3Y 0wTsqp9tXqWORdeoIQpyxFlQ647X6SuzwcJeLFqg7eVloKC1RzhTCZXtuEfytWyN8C oX/0WwJAutA8Q0RqCiSXr2bxt/P6cl0pmYyvZULY= Received: from smtpng3.i.mail.ru (smtpng3.i.mail.ru [94.100.177.149]) (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 89C956F3C8 for ; Sun, 2 Oct 2022 18:21:10 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 89C956F3C8 Received: by smtpng3.m.smailru.net with esmtpa (envelope-from ) id 1of0mD-0005dD-Jb; Sun, 02 Oct 2022 18:21:10 +0300 To: Sergey Kaplun , Maxim Kokryashkin Date: Sun, 2 Oct 2022 18:10:46 +0300 Message-Id: <701de8c1cd6ee15f42062c1d07dc133834bab5db.1664723361.git.imun@tarantool.org> X-Mailer: git-send-email 2.34.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Mailru-Src: smtp X-7564579A: B8F34718100C35BD X-77F55803: 4F1203BC0FB41BD95BC634034C2E7965941C6EEB2FF0B52A40AEB292AEC1AD77182A05F538085040D1FCD3BD1875ACBE5B957C6FA4EDA9EF065028CD5159CA9F7B7DC7174574D0FF X-7FA49CB5: FF5795518A3D127A4AD6D5ED66289B5278DA827A17800CE79A02CDD1178524C2EA1F7E6F0F101C67BD4B6F7A4D31EC0BCC500DACC3FED6E28638F802B75D45FF8AA50765F7900637BEEB0D1ADA650026EA1F7E6F0F101C6723150C8DA25C47586E58E00D9D99D84E1BDDB23E98D2D38B8859CA687ABA27BA5E2FA5C66917CF21A482C59DD850CEAECC7F00164DA146DAFE8445B8C89999728AA50765F79006378C85D253A8FF80DC9FA2833FD35BB23D2EF20D2F80756B5F868A13BD56FB6657A471835C12D1D977725E5C173C3A84C3E2EAA78A0DB8CED1117882F4460429728AD0CFFFB425014E868A13BD56FB6657E2021AF6380DFAD1A18204E546F3947CD2DCF9CF1F528DBC2E808ACE2090B5E1725E5C173C3A84C3C5EA940A35A165FF2DBA43225CD8A89F36E876923B269E05262FEC7FBD7D1F5BB5C8C57E37DE458BEDA766A37F9254B7 X-C1DE0DAB: C20DE7B7AB408E4181F030C43753B8186998911F362727C41E93BD56E7067354307CAA32FF218580205367B2BCC23E5BE99843EE6E79C5DCE7E65F06B2D3BF1CAD91A466A1DEF99B6ED91DBE5ABE359A3485EE9140A7D39DC234C8B12C006B7A8ECF358FFA4107EDC39467E442C9CB3DF3F058109582D4BAB1881A6453793CE9C32612AADDFBE061A63B29EDA3C12D24A71A35648BE338CE9510FB958DCE06DB58C12E6D310A6D5333F7A9E5587C79A693EDB24507CE13387DFF0A840B692CF8 X-C8649E89: 4E36BF7865823D7055A7F0CF078B5EC49A30900B95165D345C110A855FC09999CCDBFE1B025F2AABB6C04E747CE80FBE52E387DEB66DAD75B24E7EB6FB2EDF4F1D7E09C32AA3244C77B5C045B18EB2113590309A5FF5E2185A1673A01BA68E40927AC6DF5659F194 X-D57D3AED: 3ZO7eAau8CL7WIMRKs4sN3D3tLDjz0dLbV79QFUyzQ2Ujvy7cMT6pYYqY16iZVKkSc3dCLJ7zSJH7+u4VD18S7Vl4ZUrpaVfd2+vE6kuoey4m4VkSEu530nj6fImhcD4MUrOEAnl0W826KZ9Q+tr5ycPtXkTV4k65bRjmOUUP8cvGozZ33TWg5HZplvhhXbhDGzqmQDTd6OAevLeAnq3Ra9uf7zvY2zzsIhlcp/Y7m53TZgf2aB4JOg4gkr2biojbL9S8ysBdXiaqbFagssnmhVEZOq9OPAQ X-DA7885C5: 4DB36FE33B12A49AD9C2A698F63BCDF982B69C1D8BBA3DF22768C07BD06A1438262E2D401490A4A0DB037EFA58388B346E8BC1A9835FDE71 X-Mailru-Sender: 689FA8AB762F7393CC2E0F076E87284EC6A4934545202141E8225F87DAAB846AA7C8D0F45F857DBFE9F1EFEE2F478337FB559BB5D741EB964C8C2C849690F8E70A04DAD6CC59E3365FEEDEB644C299C0ED14614B50AE0675 X-Mras: Ok Subject: [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 Cc: tarantool-patches@dev.tarantool.org Errors-To: tarantool-patches-bounces@dev.tarantool.org Sender: "Tarantool-patches" 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