diff options
author | Kyungwoo Lee <kyulee@microsoft.com> | 2016-03-24 10:36:18 -0700 |
---|---|---|
committer | Kyungwoo Lee <kyulee@microsoft.com> | 2016-03-24 10:44:05 -0700 |
commit | 9bc133dfd67980e9496c93bb08de9a03c33e12e3 (patch) | |
tree | 980e22348209f48f6842c120ebb4a75918107687 /src/tools | |
parent | cec26a62bbdf9f72af120ac7ef6fa2e9903684fa (diff) | |
download | coreclr-9bc133dfd67980e9496c93bb08de9a03c33e12e3.tar.gz coreclr-9bc133dfd67980e9496c93bb08de9a03c33e12e3.tar.bz2 coreclr-9bc133dfd67980e9496c93bb08de9a03c33e12e3.zip |
Remove static lib dependency on CrossGen
The motivation is for enabling ARM64 which does not have correct static
lib with the current toolset.
But looking at other console apps (ilasm/ildasm/coreconsole/corerun) or
coreclr.dll, they also have dependency on msvcrt for Windows.
So, I've decided to make crossgen.exe with the same flavor.
This changes reduces the binary size -- 10M -> 9M (Debug). Release binary
is slightly smaller.
I've validated this by comparing .ni.dll for all FX assemblies that we use for
tests (under CORE_ROOT), which are identical before and after.
Diffstat (limited to 'src/tools')
-rw-r--r-- | src/tools/crossgen/CMakeLists.txt | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/tools/crossgen/CMakeLists.txt b/src/tools/crossgen/CMakeLists.txt index d5e956620f..fe2568073c 100644 --- a/src/tools/crossgen/CMakeLists.txt +++ b/src/tools/crossgen/CMakeLists.txt @@ -57,13 +57,9 @@ else() shlwapi bcrypt mdwinmd_crossgen - ${STATIC_MT_CRT_LIB} + msvcrt ) - # ARM64_TODO: Enable this for Windows Arm64 - if (NOT CLR_CMAKE_PLATFORM_ARCH_ARM64) - target_link_libraries(crossgen ${STATIC_MT_VCRT_LIB}) - endif() endif(CLR_CMAKE_PLATFORM_UNIX) add_subdirectory(../../zap/crossgen ../../zap/crossgen) |