Skip to content

Commit d98de54

Browse files
authored
Threading: add a linker directive for Windows autolinking (#78711)
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.
2 parents 370cbca + 59e465d commit d98de54

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)