Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dotnet/runtime.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVladimir Sadov <vsadov@microsoft.com>2021-04-15 05:00:31 +0300
committerGitHub <noreply@github.com>2021-04-15 05:00:31 +0300
commit711424876b78e2de44b6d7479fd750c4a60d7be7 (patch)
tree8c376f87f79449c00f0d719eceb71192df745674 /src/coreclr/vm/CMakeLists.txt
parent40a4cb663ee45d885bd5fa59d19d5d11750cf47f (diff)
Singlefile: enabling compression for managed assemblies. (#50817)
* enable compression of assemblies * fix Unix build * map should use converted layout for compressed * enable execution for R2R * fixes for OSX * PR feedback (comments) * more PR feedback * shorter include path to pal_zlib.h * Apply suggestions from code review Co-authored-by: Vitek Karas <vitek.karas@microsoft.com> Co-authored-by: Vitek Karas <vitek.karas@microsoft.com>
Diffstat (limited to 'src/coreclr/vm/CMakeLists.txt')
-rw-r--r--src/coreclr/vm/CMakeLists.txt12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/coreclr/vm/CMakeLists.txt b/src/coreclr/vm/CMakeLists.txt
index c93cbd79dc0..30a51a852c7 100644
--- a/src/coreclr/vm/CMakeLists.txt
+++ b/src/coreclr/vm/CMakeLists.txt
@@ -5,6 +5,12 @@ include_directories(BEFORE ${CMAKE_CURRENT_SOURCE_DIR})
include_directories(${ARCH_SOURCES_DIR})
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../interop/inc)
+# needed when zLib compression is used
+include_directories(${CLR_SRC_LIBS_NATIVE_DIR}/AnyOS/zlib)
+if(NOT CLR_CMAKE_TARGET_WIN32)
+ include_directories(${CLR_SRC_LIBS_NATIVE_DIR}/Unix/Common)
+endif()
+
add_definitions(-DUNICODE)
add_definitions(-D_UNICODE)
@@ -106,7 +112,6 @@ set(VM_SOURCES_DAC_AND_WKS_COMMON
onstackreplacement.cpp
pefile.cpp
peimage.cpp
- peimagelayout.cpp
perfmap.cpp
perfinfo.cpp
pgo.cpp
@@ -892,6 +897,11 @@ endif(CLR_CMAKE_TARGET_WIN32)
set (VM_SOURCES_WKS_SPECIAL
codeman.cpp
ceemain.cpp
+ peimagelayout.cpp
+)
+
+list(APPEND VM_SOURCES_DAC
+ peimagelayout.cpp
)
# gcdecode.cpp is included by both JIT and VM. to avoid duplicate definitions we need to