Skip to content

Commit c24dbb5

Browse files
author
bors-servo
authored
Auto merge of #178 - servo:limit-msvc-sdk, r=asajeffrey
Allow more recent SDK versions This cherry-picks https://hg.mozilla.org/mozilla-central/rev/c085e1b32fb9. <!-- 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/178) <!-- Reviewable:end -->
2 parents dac834b + 7725747 commit c24dbb5

File tree

3 files changed

+19
-2
lines changed

3 files changed

+19
-2
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.11"
5+
version = "0.61.12"
66
authors = ["Mozilla"]
77
links = "mozjs"
88
build = "build.rs"

etc/patches/broken-sdk.patch

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
diff --git a/mozjs/build/moz.configure/windows.configure b/mozjs/build/moz.configure/windows.configure
2+
index 76f21465e4..08daf9c7d8 100644
3+
--- a/mozjs/build/moz.configure/windows.configure
4+
+++ b/mozjs/build/moz.configure/windows.configure
5+
@@ -237,7 +237,9 @@ def valid_ucrt_sdk_dir(windows_sdk_dir, windows_sdk_dir_env, c_compiler):
6+
% (version, minimum_ucrt_version))
7+
8+
broken_ucrt_version = Version('10.0.16299.0')
9+
- if c_compiler.type == 'clang-cl' and version >= broken_ucrt_version:
10+
+ working_ucrt_version = Version('10.0.17134.0')
11+
+ if c_compiler.type == 'clang-cl' and version >= broken_ucrt_version and \
12+
+ version < working_ucrt_version:
13+
raise FatalCheckError('Found SDK version %s but clang-cl builds'
14+
' currently don\'t work with SDK version %s'
15+
' and later. You should use an older SDK,'

mozjs/build/moz.configure/windows.configure

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,9 @@ def valid_ucrt_sdk_dir(windows_sdk_dir, windows_sdk_dir_env, c_compiler):
237237
% (version, minimum_ucrt_version))
238238

239239
broken_ucrt_version = Version('10.0.16299.0')
240-
if c_compiler.type == 'clang-cl' and version >= broken_ucrt_version:
240+
working_ucrt_version = Version('10.0.17134.0')
241+
if c_compiler.type == 'clang-cl' and version >= broken_ucrt_version and \
242+
version < working_ucrt_version:
241243
raise FatalCheckError('Found SDK version %s but clang-cl builds'
242244
' currently don\'t work with SDK version %s'
243245
' and later. You should use an older SDK,'

0 commit comments

Comments
 (0)