tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

commit 46108568a4b70855b955234af2f999f39f8190b9
parent fc938b0812fafe9b20a0c6f56c9dc91efa63f954
Author: Emilio Cobos Álvarez <emilio@crisal.io>
Date:   Thu, 13 Nov 2025 21:17:52 +0000

Bug 1999050 - Define _DISABLE_CONSTEXPR_MUTEX_CONSTRUCTOR on Windows. r=glandium

This prevents crashes with older runtimes, see Yannis' analysis.

Differential Revision: https://phabricator.services.mozilla.com/D271847

Diffstat:
Mbuild/moz.configure/windows.configure | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/build/moz.configure/windows.configure b/build/moz.configure/windows.configure @@ -592,6 +592,9 @@ with only_when(depends(c_compiler)(lambda c: c.type == "clang-cl")): set_define("_CRT_SECURE_NO_WARNINGS", True) set_define("_CRT_NONSTDC_NO_WARNINGS", True) + # Work around issues with newer STL and older runtimes, see bug 1994496. + set_define("_DISABLE_CONSTEXPR_MUTEX_CONSTRUCTOR", True) + set_define("HAVE_SEH_EXCEPTIONS", True) set_define("HAVE_IO_H", True)