Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/actions/spelling/expect.txt
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ DCPPREST
debian
decompressor
dedupe
defaultlib
DEFT
deigh
deleteifnotneeded
Expand Down Expand Up @@ -228,6 +229,7 @@ Howto
hre
hresults
hwnd
hybridcrt
Hyperlink
IARP
IAttachment
Expand Down Expand Up @@ -568,6 +570,7 @@ UCase
ucasemap
UChars
ucnv
ucrt
udwgp
uec
ULONGLONG
Expand Down
11 changes: 11 additions & 0 deletions src/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,17 @@
<MultiProcessorCompilation>true</MultiProcessorCompilation>
</ClCompile>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)'=='ReleaseStatic'">
<Link>
<!-- Link statically against the runtime and STL, but link dynamically against the CRT by ignoring the static CRT
lib and instead linking against the Universal CRT DLL import library. This "hybrid" linking mechanism is
supported according to the CRT maintainer. Dynamic linking against the CRT makes the binaries a bit smaller
than they would otherwise be if the CRT, runtime, and STL were all statically linked in.
See https://aka.ms/hybridcrt for more details. -->
<IgnoreSpecificDefaultLibraries>%(IgnoreSpecificDefaultLibraries);libucrt.lib</IgnoreSpecificDefaultLibraries>
<AdditionalOptions>%(AdditionalOptions) /defaultlib:ucrt.lib</AdditionalOptions>
</Link>
</ItemDefinitionGroup>

<!-- For C# -->
<PropertyGroup Condition="'$(WinGetMacros)' != ''">
Expand Down