From 9bc133dfd67980e9496c93bb08de9a03c33e12e3 Mon Sep 17 00:00:00 2001 From: Kyungwoo Lee Date: Thu, 24 Mar 2016 10:36:18 -0700 Subject: 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. --- crossgen.cmake | 4 ---- 1 file changed, 4 deletions(-) (limited to 'crossgen.cmake') diff --git a/crossgen.cmake b/crossgen.cmake index 436203dab6..999a73f5f0 100644 --- a/crossgen.cmake +++ b/crossgen.cmake @@ -18,10 +18,6 @@ remove_definitions( -DFEATURE_VERSIONING_LOG ) -if(WIN32) - add_definitions(-MT) -endif(WIN32) - if(FEATURE_READYTORUN) add_definitions(-DFEATURE_READYTORUN_COMPILER) endif(FEATURE_READYTORUN) -- cgit v1.2.3