diff --git a/run.py b/run.py index ac0f595f..91bf8b96 100644 --- a/run.py +++ b/run.py @@ -1272,6 +1272,7 @@ def install_deps(platform: Platform, source_dir, build_dir, install_dir, debug, '-D_LIBCPP_ABI_NAMESPACE=Cr', '-D_LIBCPP_ABI_VERSION=2', '-D_LIBCPP_DISABLE_AVAILABILITY', + '-D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE', '-nostdinc++', '-std=gnu++17', f"-isystem{os.path.join(webrtc_info.libcxx_dir, 'include')}", @@ -1298,6 +1299,7 @@ def install_deps(platform: Platform, source_dir, build_dir, install_dir, debug, '-D_LIBCPP_ABI_NAMESPACE=Cr', '-D_LIBCPP_ABI_VERSION=2', '-D_LIBCPP_DISABLE_AVAILABILITY', + '-D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE', '-nostdinc++', '-std=gnu++17', f"-isystem{os.path.join(webrtc_info.libcxx_dir, 'include')}", @@ -1315,6 +1317,7 @@ def install_deps(platform: Platform, source_dir, build_dir, install_dir, debug, '-D_LIBCPP_ABI_NAMESPACE=Cr', '-D_LIBCPP_ABI_VERSION=2', '-D_LIBCPP_DISABLE_AVAILABILITY', + '-D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE', '-nostdinc++', f"-isystem{os.path.join(webrtc_info.libcxx_dir, 'include')}", '-fPIC',