[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [tor-browser] branch tor-browser-102.3.0esr-12.0-2 updated: Bug 41340: Enable TOR_BROWSER_NIGHTLY_BUILD features for dev and nightly builds
This is an automated email from the git hooks/post-receive script.
richard pushed a commit to branch tor-browser-102.3.0esr-12.0-2
in repository tor-browser.
The following commit(s) were added to refs/heads/tor-browser-102.3.0esr-12.0-2 by this push:
new 5b3b50e96dd6 Bug 41340: Enable TOR_BROWSER_NIGHTLY_BUILD features for dev and nightly builds
5b3b50e96dd6 is described below
commit 5b3b50e96dd65bcd3b062a83f300a4a634437651
Author: Henry Wilkes <henry@xxxxxxxxxxxxxx>
AuthorDate: Fri Sep 30 15:04:37 2022 +0100
Bug 41340: Enable TOR_BROWSER_NIGHTLY_BUILD features for dev and nightly builds
tor-browser#41285: Enable fluent warnings.
---
build/moz.configure/init.configure | 10 ++++++++++
intl/l10n/Localization.h | 3 ++-
2 files changed, 12 insertions(+), 1 deletion(-)
diff --git a/build/moz.configure/init.configure b/build/moz.configure/init.configure
index a85df3393c16..e64852eb3ac0 100644
--- a/build/moz.configure/init.configure
+++ b/build/moz.configure/init.configure
@@ -1094,6 +1094,16 @@ set_define("MOZ_UPDATE_CHANNEL", update_channel)
add_old_configure_assignment("MOZ_UPDATE_CHANNEL", update_channel)
+# Add a TOR_BROWSER_NIGHTLY_BUILD flag to use when MOZ_UPDATE_CHANNEL cannot be
+# used. For example, for the C++ preprocessor. See tor-browser#41340
+@depends("--enable-update-channel")
+def tor_browser_nightly_build(channel):
+ if channel and channel[0] in ["default", "nightly"]:
+ return True
+
+set_define("TOR_BROWSER_NIGHTLY_BUILD", tor_browser_nightly_build)
+
+
option(
env="MOZBUILD_STATE_PATH",
nargs=1,
diff --git a/intl/l10n/Localization.h b/intl/l10n/Localization.h
index 54c78f68dbe7..ebe285be4772 100644
--- a/intl/l10n/Localization.h
+++ b/intl/l10n/Localization.h
@@ -51,7 +51,8 @@ namespace intl {
return true;
}
-#if defined(NIGHTLY_BUILD) || defined(MOZ_DEV_EDITION) || defined(DEBUG)
+ // See tor-browser#41285
+#if defined(NIGHTLY_BUILD) || defined(MOZ_DEV_EDITION) || defined(DEBUG) || defined(TOR_BROWSER_NIGHTLY_BUILD)
dom::Document* doc = nullptr;
if (aGlobal) {
nsPIDOMWindowInner* innerWindow = aGlobal->AsInnerWindow();
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits