Skip to content

Commit c4b0e97

Browse files
authored
Merge pull request #81589 from compnerd/autolink
CommandLineSupport: add a directive for autolinking on Windows
2 parents e4f4bd3 + 3b968f6 commit c4b0e97

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

stdlib/public/CommandLineSupport/CommandLine.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
#define WIN32_LEAN_AND_MEAN
3838
#include <Windows.h>
3939
#include <shellapi.h>
40+
#pragma comment(lib, "shell32.lib")
4041
#endif
4142

4243
// Backing storage for overrides of `Swift.CommandLine.arguments`.

0 commit comments

Comments
 (0)