Skip to content

Commit 7d9ff0d

Browse files
committed
Bug 1836723 - Link against ntdll for rustc 1.70. r=firefox-build-system-reviewers,ahochheiden, a=dmeehan
Building with rustc 1.70 adds a dependency to the ntdll library through libstd using NtCreateFile/NtWriteFile (it previously picked the symbols at runtime). Differential Revision: https://phabricator.services.mozilla.com/D180011
1 parent 9825fee commit 7d9ff0d

File tree

5 files changed

+5
-0
lines changed

5 files changed

+5
-0
lines changed

js/src/build/moz.build

+1
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ if CONFIG["OS_ARCH"] == "SunOS":
8282
if CONFIG["OS_ARCH"] == "WINNT":
8383
OS_LIBS += [
8484
"bcrypt",
85+
"ntdll",
8586
]
8687

8788
if CONFIG["MOZ_NEEDS_LIBATOMIC"]:

security/manager/ssl/builtins/dynamic-library/moz.build

+1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ if CONFIG["OS_ARCH"] == "WINNT":
2828
]
2929
OS_LIBS += [
3030
"bcrypt",
31+
"ntdll",
3132
]
3233

3334

security/manager/ssl/ipcclientcerts/dynamic-library/moz.build

+1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ if CONFIG["OS_ARCH"] == "WINNT":
3030
]
3131
OS_LIBS += [
3232
"bcrypt",
33+
"ntdll",
3334
]
3435

3536

security/manager/ssl/osclientcerts/dynamic-library/moz.build

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ if CONFIG["OS_ARCH"] == "WINNT":
1818
"ncrypt",
1919
"userenv",
2020
"ws2_32",
21+
"ntdll",
2122
]
2223

2324
if CONFIG["OS_ARCH"] == "Darwin":

toolkit/mozapps/defaultagent/moz.build

+1
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ OS_LIBS += [
7171
"userenv",
7272
"wininet",
7373
"ws2_32",
74+
"ntdll",
7475
]
7576

7677
DEFINES["NS_NO_XPCOM"] = True

0 commit comments

Comments
 (0)