diff --git a/tools/msbuild/LLVM.Cpp.Common.props b/tools/msbuild/LLVM.Cpp.Common.props
index 9a50dcd8a45..3420b77cfff 100644
--- a/tools/msbuild/LLVM.Cpp.Common.props
+++ b/tools/msbuild/LLVM.Cpp.Common.props
@@ -41,6 +41,9 @@
$(Registry:HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\LLVM\LLVM)
$(LLVMInstallDir)\
$(LLVMInstallDir)bin\clang-cl.exe
+ $(LLVMInstallDir)bin\lld-link.exe
+ true
+ true
@@ -69,8 +72,6 @@
not pass the option). Only if the user explicitly overrode this setting in a project to use
/RTCu would we see the warning. -->
Default
-
- -m$(PlatformArchitecture) %(AdditionalOptions)
diff --git a/tools/msbuild/LLVM.Cpp.Common.targets b/tools/msbuild/LLVM.Cpp.Common.targets
index 458eba37647..5870a3d4c59 100644
--- a/tools/msbuild/LLVM.Cpp.Common.targets
+++ b/tools/msbuild/LLVM.Cpp.Common.targets
@@ -7,7 +7,8 @@
selected via the settings UI appear in the vcxproj (which is imported
before the targets file but after the props file) and we need the path
that the user may have overridden in the UI. -->
- $(ClangClExecutable)
+ $(ClangClExecutable)
+ $(LldLinkExecutable)
@@ -16,6 +17,20 @@
+
+
+
+ -m$(PlatformArchitecture) $(ClangClAdditionalOptions) %(AdditionalOptions)
+
+
+
+
+
+ $(LldLinkAdditionalOptions) %(AdditionalOptions)
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
-
+
+
+
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+