Skip to content
This repository was archived by the owner on Nov 5, 2024. It is now read-only.

Commit a31a0d5

Browse files
committed
link with bcrypt on windows to get a binary
1 parent 4fb32b1 commit a31a0d5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

scripts/targets/x86_64-pc-windows-gnu.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ $(CC) $(1) $(CFLAGS) -c -o $(2)
2626
endef
2727

2828
define build_c_exe
29-
$(CC) $(1) $(CFLAGS) -lws2_32 -luserenv -o $(2)
29+
$(CC) $(1) $(CFLAGS) -lws2_32 -luserenv -lbcrypt -o $(2)
3030
endef
3131

3232
BENCHMARK_RUNNER_ASSET_NAME = rust-parser-x86_64-pc-windows-gnu.exe

scripts/targets/x86_64-pc-windows-msvc.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ $(CC) $(1) $(CFLAGS) /c /Fo
2424
endef
2525

2626
define build_c_exe
27-
$(CC) ws2_32.lib advapi32.lib userenv.lib $(1) $(CFLAGS) /link /OUT:$(2)
27+
$(CC) ws2_32.lib advapi32.lib userenv.lib bcrypt.lib $(1) $(CFLAGS) /link /OUT:$(2)
2828
endef
2929

3030
BENCHMARK_RUNNER_ASSET_NAME = rust-parser-x86_64-pc-windows-msvc.exe

0 commit comments

Comments
 (0)