Skip to content

Commit 49d63a8

Browse files
author
bors-servo
authored
Auto merge of #170 - servo:jdm-patch-4, r=asajeffrey
Disable all shared library code This should work around the duplicate DllMain that's appearing in servo/servo#22856. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/mozjs/170) <!-- Reviewable:end -->
2 parents a548de4 + 8d23ae1 commit 49d63a8

File tree

4 files changed

+30
-6
lines changed

4 files changed

+30
-6
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "mozjs_sys"
33
description = "System crate for the Mozilla SpiderMonkey JavaScript engine."
44
repository = "https://github.com/servo/mozjs/"
5-
version = "0.61.6"
5+
version = "0.61.7"
66
authors = ["Mozilla"]
77
links = "mozjs"
88
build = "build.rs"

etc/patches/disable-nspr-shared.patch

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
diff --git a/mozjs/config/external/nspr/moz.build b/mozjs/config/external/nspr/moz.build
2+
index 18b9a1a5cf..231f6ec380 100644
3+
--- a/mozjs/config/external/nspr/moz.build
4+
+++ b/mozjs/config/external/nspr/moz.build
5+
@@ -18,11 +18,12 @@ if CONFIG['MOZ_BUILD_NSPR']:
6+
'nss',
7+
]
8+
else:
9+
- USE_LIBS += [
10+
- #'nspr4',
11+
- 'plc4',
12+
- 'plds4',
13+
- ]
14+
+ #USE_LIBS += [
15+
+ # 'nspr4',
16+
+ # 'plc4',
17+
+ # 'plds4',
18+
+ #]
19+
+ pass
20+
EXPORTS.nspr += ['prcpucfg.h']
21+
else:
22+
OS_LIBS += CONFIG['NSPR_LIBS']

makefile.cargo

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ CONFIGURE_FLAGS := \
77
--disable-jemalloc \
88
--disable-js-shell \
99
--disable-tests \
10+
--disable-shared-js \
1011
--build-backends=RecursiveMake
1112

1213
ifneq ($(HOST),$(TARGET))

mozjs/config/external/nspr/moz.build

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,12 @@ if CONFIG['MOZ_BUILD_NSPR']:
1818
'nss',
1919
]
2020
else:
21-
USE_LIBS += [
22-
'nspr4',
23-
'plc4',
24-
'plds4',
25-
]
21+
#USE_LIBS += [
22+
# 'nspr4',
23+
# 'plc4',
24+
# 'plds4',
25+
#]
26+
pass
2627
EXPORTS.nspr += ['prcpucfg.h']
2728
else:
2829
OS_LIBS += CONFIG['NSPR_LIBS']

0 commit comments

Comments
 (0)