summaryrefslogtreecommitdiff
path: root/crossgen.cmake
diff options
context:
space:
mode:
authorJohn Chen <jochen@microsoft.com>2015-04-20 08:36:31 -0700
committerJohn Chen <jochen@microsoft.com>2015-04-20 08:36:31 -0700
commit10ad17e525b7c5f6432e3c1b0a453d291e5d78b6 (patch)
tree46315b7efcfd5b6da8382cc0bb5b659c6d3d5d5c /crossgen.cmake
parent6288f3d99995661184d90d542511ff37905ef299 (diff)
downloadcoreclr-10ad17e525b7c5f6432e3c1b0a453d291e5d78b6.tar.gz
coreclr-10ad17e525b7c5f6432e3c1b0a453d291e5d78b6.tar.bz2
coreclr-10ad17e525b7c5f6432e3c1b0a453d291e5d78b6.zip
Enable build crossgen.exe from build.cmd.
Adds and modifies CMakeLists.txt files to enable building of crossgen.exe from build.cmd for x64 processor on Windows. Also adds a step in build.cmd to generate native image for mscorlib. [tfs-changeset: 1456454]
Diffstat (limited to 'crossgen.cmake')
-rw-r--r--crossgen.cmake20
1 files changed, 20 insertions, 0 deletions
diff --git a/crossgen.cmake b/crossgen.cmake
new file mode 100644
index 0000000000..f8bdbd0567
--- /dev/null
+++ b/crossgen.cmake
@@ -0,0 +1,20 @@
+# Contains the crossgen build specific definitions. Included by the leaf crossgen cmake files.
+
+add_definitions(
+ -DCROSSGEN_COMPILE
+ -DCROSS_COMPILE
+ -DFEATURE_NATIVE_IMAGE_GENERATION
+ -DSELF_NO_HOST)
+
+remove_definitions(
+ -DEnC_SUPPORTED
+ -DFEATURE_EVENT_TRACE=1
+ -DFEATURE_LOADER_OPTIMIZATION
+ -DFEATURE_MULTICOREJIT
+ -DFEATURE_RANDOMIZED_STRING_HASHING
+ -DFEATURE_VERSIONING_LOG
+)
+
+if(WIN32)
+ add_definitions(-MT)
+endif(WIN32)