Skip to content

Commit d3213e3

Browse files
NN---VSadov
andauthored
[release/6.0] Support Single-file executable in Windows 7 (#63533)
* Delay load winrt * Trivial change to rerun tests Co-authored-by: Vladimir Sadov <vsadov@microsoft.com>
1 parent 2299c9f commit d3213e3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/native/corehost/apphost/static/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,9 @@ if(CLR_CMAKE_TARGET_WIN32)
110110
# Incremental linking results in the linker inserting extra padding and routing function calls via thunks that can break the
111111
# invariants (e.g. size of region between Jit_PatchedCodeLast-Jit_PatchCodeStart needs to fit in a page).
112112
add_linker_flag("/INCREMENTAL:NO")
113+
114+
# Delay load libraries required for WinRT as that is not supported on all platforms.
115+
add_linker_flag("/DELAYLOAD:api-ms-win-core-winrt-l1-1-0.dll")
113116
endif()
114117

115118
if(CLR_CMAKE_TARGET_WIN32)
@@ -130,6 +133,7 @@ if(CLR_CMAKE_TARGET_WIN32)
130133
shell32.lib
131134
bcrypt.lib
132135
RuntimeObject.lib
136+
delayimp.lib
133137
)
134138

135139
set(RUNTIMEINFO_LIB runtimeinfo)

0 commit comments

Comments
 (0)