From b6bb3e0a80b39d656249971ae5209526233bcaf6 Mon Sep 17 00:00:00 2001 From: "Dustin L. Howett" Date: Fri, 17 Mar 2023 17:12:32 -0500 Subject: [PATCH] Enable the Hybrid CRT for all C++ projects (#15010) The less we need the C++ runtime, the better. I measured this as growing our package by a fair amount... but less than the size of XamlHost and all the forwarders combined. Reducing our dependency surface makes us easier to deploy and more reliable. _as of 1.17 (2022-10)_ | **File** | **Before** | **After** | **Delta** | | ----------------------- | ----------:| ---------:| ----------------:| | `OpenConsole` | 1,273,344 | 1,359,360 | +86,016 (84kb) | | `TerminalApp` | 2,037,248 | 2,120,704 | +83,456 (82kb) | | `TerminalControl` | 1,412,608 | 1,502,720 | +90,112 (88kb) | | `TerminalSettingsModel` | 1,510,912 | 1,621,504 | +110,592 (108kb) | | `wt` | 97,280 | 122,368 | +25,088 (25kb) | | `WindowsTerminal` | 508,928 | 575,488 | +66,560 (65kb) | | **MSIX Overall** | 6,488,301 | 6,799,017 | +310,716 (303kb) | --- src/common.build.post.props | 2 +- src/common.build.pre.props | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/src/common.build.post.props b/src/common.build.post.props index d243c3361c..1326e062bc 100644 --- a/src/common.build.post.props +++ b/src/common.build.post.props @@ -25,7 +25,7 @@ %(AdditionalOptions) /defaultlib:ucrtd.lib - + MultiThreaded diff --git a/src/common.build.pre.props b/src/common.build.pre.props index a670249bf4..5d4c2a6f81 100644 --- a/src/common.build.pre.props +++ b/src/common.build.pre.props @@ -81,12 +81,26 @@ + + + false + true + + v143 Unicode false x64 + true + false