diff options
author | Vladimir Sadov <vsadov@microsoft.com> | 2021-02-20 07:40:14 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-20 07:40:14 +0300 |
commit | 2b53a0abd8194ac1005e5fb5db399a2eeb7fbfbf (patch) | |
tree | 3be909af9a4f75539fef8771cf1a506ffba334d0 /src/coreclr/dlls | |
parent | 629ad508bf386fcbfd684a636d5e2e1146f84066 (diff) |
Building singlefilehost with clr partition. (#48254)
* building single file host with clr partition
* make coreclr_static a STATIC lib again
Diffstat (limited to 'src/coreclr/dlls')
-rw-r--r-- | src/coreclr/dlls/mscoree/coreclr/CMakeLists.txt | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/src/coreclr/dlls/mscoree/coreclr/CMakeLists.txt b/src/coreclr/dlls/mscoree/coreclr/CMakeLists.txt index 2a39c5740a0..705caaedb51 100644 --- a/src/coreclr/dlls/mscoree/coreclr/CMakeLists.txt +++ b/src/coreclr/dlls/mscoree/coreclr/CMakeLists.txt @@ -1,3 +1,10 @@ + +# we need to define this library before adding .def fiels to sources. +add_library_clr(coreclr_static + STATIC + ${CLR_SOURCES} +) + if (CLR_CMAKE_TARGET_WIN32) preprocess_file(${DEF_SOURCES} ${CMAKE_CURRENT_BINARY_DIR}/coreclr.def) @@ -64,11 +71,6 @@ add_library_clr(coreclr ${CLR_SOURCES} ) -add_library_clr(coreclr_static - STATIC - ${CLR_SOURCES} -) - add_custom_target(coreclr_exports DEPENDS ${EXPORTS_FILE}) add_custom_target(coreclr_def DEPENDS ${DEF_FILE}) @@ -222,8 +224,5 @@ endif(CLR_CMAKE_TARGET_WIN32) # add the install targets install_clr(TARGETS coreclr ADDITIONAL_DESTINATIONS sharedFramework) -# publish coreclr_static lib -_install(TARGETS coreclr_static DESTINATION lib) - # Enable profile guided optimization add_pgo(coreclr) |