summaryrefslogtreecommitdiffstats
path: root/js/moz.configure
diff options
context:
space:
mode:
authorMatt A. Tobin <email@mattatobin.com>2020-11-04 20:26:51 -0500
committerMatt A. Tobin <email@mattatobin.com>2020-11-04 20:28:06 -0500
commit19499014a36f2f27ac81d11495fdc5bdbd28ae25 (patch)
treee2147fb07540c98991423bc761b7bc4aee0961ee /js/moz.configure
parent78b3a722b4b91c2482fed60d7e970a3f57645456 (diff)
downloadUXP-19499014a36f2f27ac81d11495fdc5bdbd28ae25.tar
UXP-19499014a36f2f27ac81d11495fdc5bdbd28ae25.tar.gz
UXP-19499014a36f2f27ac81d11495fdc5bdbd28ae25.tar.lz
UXP-19499014a36f2f27ac81d11495fdc5bdbd28ae25.tar.xz
UXP-19499014a36f2f27ac81d11495fdc5bdbd28ae25.zip
Issue #1677 - Part 2: Add build files
Diffstat (limited to 'js/moz.configure')
-rw-r--r--js/moz.configure13
1 files changed, 13 insertions, 0 deletions
diff --git a/js/moz.configure b/js/moz.configure
index 7687731f9..3bbaf01a3 100644
--- a/js/moz.configure
+++ b/js/moz.configure
@@ -246,3 +246,16 @@ with only_when('--enable-compile-environment'):
set_config('LIBFUZZER', enable_libfuzzer)
set_define('LIBFUZZER', enable_libfuzzer)
+
+# Initial support for new regexp engine
+# ==================================================
+
+js_option('--enable-new-regexp', default=False, help='Enable new regexp engine')
+
+@depends('--enable-new-regexp')
+def enable_new_regexp(value):
+ if value:
+ return True
+
+set_config('JS_NEW_REGEXP', enable_new_regexp)
+set_define('JS_NEW_REGEXP', enable_new_regexp)