Skip to content

Commit 59e465d

Browse files
committed
Threading: add a linker directive for Windows autolinking
This library is pulled into the standard library. Add autolinking directives to enable the use of the library with static linking without specifying the system dependencies. This is required to enable the user to use `-static-stdlib` without having to specify all dependencies.
1 parent 6b2fb2e commit 59e465d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/Threading/Win32.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020
#define NOMINMAX
2121
#include <windows.h>
2222

23+
#pragma comment(lib, "synchronization.lib")
24+
2325
#include "swift/Threading/Errors.h"
2426
#include "swift/Threading/Impl.h"
2527

0 commit comments

Comments
 (0)