-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Singlefile: enabling compression for managed assemblies. #50817
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
aba4619
04a1791
7cf28fb
937e10d
7b5d43e
f218f19
f522313
9b3f8d4
113bd6b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
get_filename_component(CLR_REPO_ROOT_DIR ${CMAKE_CURRENT_LIST_DIR}/../.. ABSOLUTE) | ||
set(CLR_ENG_NATIVE_DIR ${CMAKE_CURRENT_LIST_DIR}) | ||
get_filename_component(CLR_SRC_NATIVE_DIR ${CMAKE_CURRENT_LIST_DIR}/../../src/native ABSOLUTE) | ||
get_filename_component(CLR_SRC_LIBS_NATIVE_DIR ${CMAKE_CURRENT_LIST_DIR}/../../src/libraries/Native ABSOLUTE) |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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) | ||
|
||
|
@@ -107,7 +113,6 @@ set(VM_SOURCES_DAC_AND_WKS_COMMON | |
onstackreplacement.cpp | ||
pefile.cpp | ||
peimage.cpp | ||
peimagelayout.cpp | ||
perfmap.cpp | ||
perfinfo.cpp | ||
pgo.cpp | ||
|
@@ -891,6 +896,11 @@ endif(CLR_CMAKE_TARGET_WIN32) | |
set (VM_SOURCES_WKS_SPECIAL | ||
codeman.cpp | ||
ceemain.cpp | ||
peimagelayout.cpp | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why couldn't it stay in the common list? I have originally structured the lists so that no file needed to be duplicated in multiple lists. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The common list is compiled by the build only once. That includes almost every file. And we reuse objects for singlefile and regular coreclr. Very few files need to know about singlefile and have parts conditionally compiled for |
||
) | ||
|
||
list(APPEND VM_SOURCES_DAC | ||
peimagelayout.cpp | ||
) | ||
|
||
# gcdecode.cpp is included by both JIT and VM. to avoid duplicate definitions we need to | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -887,7 +887,9 @@ void PEImage::EnumMemoryRegions(CLRDataEnumMemoryFlags flags) | |
|
||
|
||
PEImage::PEImage(): | ||
m_path(), | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Are these additions really needed? Isn't the parameter-less constructor used by default? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Only if you do not have a constructor, compiler may generate one. Once you have a constructor, compiler just calls it.
|
||
m_refCount(1), | ||
m_bundleFileLocation(), | ||
m_bIsTrustedNativeImage(FALSE), | ||
m_bInHashMap(FALSE), | ||
#ifdef METADATATRACKER_DATA | ||
|
Uh oh!
There was an error while loading. Please reload this page.