From dfbd303d71a970ace6d0aae58ce7d26bbde730b7 Mon Sep 17 00:00:00 2001 From: enm10k Date: Tue, 16 Jan 2024 18:57:57 +0900 Subject: [PATCH] =?UTF-8?q?Lyra=20=E3=81=AB=E3=82=82=20=5FLIBCPP=5FHARDENI?= =?UTF-8?q?NG=5FMODE=20=E3=81=AE=E6=8C=87=E5=AE=9A=E3=81=8C=E5=BF=85?= =?UTF-8?q?=E8=A6=81=E3=81=A0=E3=81=A3=E3=81=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- third_party/lyra/toolchain/android/BUILD.tpl | 1 + third_party/lyra/toolchain/linux_x86_64/BUILD.tpl | 1 + 2 files changed, 2 insertions(+) diff --git a/third_party/lyra/toolchain/android/BUILD.tpl b/third_party/lyra/toolchain/android/BUILD.tpl index a459ad79..3995fac1 100644 --- a/third_party/lyra/toolchain/android/BUILD.tpl +++ b/third_party/lyra/toolchain/android/BUILD.tpl @@ -93,6 +93,7 @@ cc_toolchain_config( "-D_LIBCPP_ABI_NAMESPACE=Cr", "-D_LIBCPP_ABI_VERSION=2", "-D_LIBCPP_DISABLE_AVAILABILITY", + '-D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE', "-fexperimental-relative-c++-abi-vtables", "-fexceptions", ], diff --git a/third_party/lyra/toolchain/linux_x86_64/BUILD.tpl b/third_party/lyra/toolchain/linux_x86_64/BUILD.tpl index 56a5aa87..6052c5aa 100644 --- a/third_party/lyra/toolchain/linux_x86_64/BUILD.tpl +++ b/third_party/lyra/toolchain/linux_x86_64/BUILD.tpl @@ -213,6 +213,7 @@ cc_toolchain_config( "-D_LIBCPP_ABI_NAMESPACE=Cr", "-D_LIBCPP_ABI_VERSION=2", "-D_LIBCPP_DISABLE_AVAILABILITY", + '-D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE', ], link_flags = [ "-Wl,-no-as-needed",