summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyungwoo Lee <kyulee@microsoft.com>2016-06-02 10:02:58 -0700
committerKyungwoo Lee <kyulee@microsoft.com>2016-06-02 10:47:40 -0700
commit1bdc6eb40691b1fd0d19f5e137815d6bcfe359f5 (patch)
tree73539a134f4c46ff5d890440dad5b3c61ab9b01f
parent4f975716f66f235d7ed45025ed29444fb297f41b (diff)
downloadcoreclr-1bdc6eb40691b1fd0d19f5e137815d6bcfe359f5.tar.gz
coreclr-1bdc6eb40691b1fd0d19f5e137815d6bcfe359f5.tar.bz2
coreclr-1bdc6eb40691b1fd0d19f5e137815d6bcfe359f5.zip
Fix Details for ILAsm/ILDasm/ClrJit Binaries
Fixes https://github.com/dotnet/coreclr/issues/5408
-rw-r--r--src/ilasm/CMakeLists.txt6
-rw-r--r--src/ildasm/exe/CMakeLists.txt3
-rw-r--r--src/ildasm/rcdll/CMakeLists.txt2
-rw-r--r--src/jit/CMakeLists.txt9
4 files changed, 20 insertions, 0 deletions
diff --git a/src/ilasm/CMakeLists.txt b/src/ilasm/CMakeLists.txt
index f9c6ba97af..34ec7997c4 100644
--- a/src/ilasm/CMakeLists.txt
+++ b/src/ilasm/CMakeLists.txt
@@ -24,6 +24,11 @@ set(ILASM_SOURCES
assembler.cpp
prebuilt/asmparse.c
)
+if(WIN32)
+ set(ILASM_RESOURCES Native.rc)
+ add_definitions(-DFX_VER_INTERNALNAME_STR=ilasm.exe)
+endif(WIN32)
+
set_source_files_properties( prebuilt/asmparse.c PROPERTIES LANGUAGE CXX )
if(CLR_CMAKE_PLATFORM_UNIX)
@@ -40,6 +45,7 @@ endif(CLR_CMAKE_PLATFORM_UNIX)
_add_executable(ilasm
${ILASM_SOURCES}
+ ${ILASM_RESOURCES}
)
set(ILASM_LINK_LIBRARIES
diff --git a/src/ildasm/exe/CMakeLists.txt b/src/ildasm/exe/CMakeLists.txt
index 932c3850be..87cdd230f9 100644
--- a/src/ildasm/exe/CMakeLists.txt
+++ b/src/ildasm/exe/CMakeLists.txt
@@ -17,6 +17,9 @@ if(CLR_CMAKE_PLATFORM_UNIX)
set(ILDASM_RESOURCES
${TARGET_CPP_FILE}
)
+else()
+ set(ILDASM_RESOURCES ../dasm.rc)
+ add_definitions(-DFX_VER_INTERNALNAME_STR=ildasm.exe)
endif(CLR_CMAKE_PLATFORM_UNIX)
set(ILDASM_SOURCES
diff --git a/src/ildasm/rcdll/CMakeLists.txt b/src/ildasm/rcdll/CMakeLists.txt
index 93da34c3a8..5fb49daedc 100644
--- a/src/ildasm/rcdll/CMakeLists.txt
+++ b/src/ildasm/rcdll/CMakeLists.txt
@@ -8,6 +8,8 @@ add_definitions(-D__ILDASM__)
add_definitions(-DFEATURE_CORECLR)
add_definitions(-DFX_VFT=VFT_DLL)
+add_definitions(-DFX_VER_INTERNALNAME_STR=ildasmrc.dll)
+
set(ILDASM_RESOURCES
../dasm.rc
)
diff --git a/src/jit/CMakeLists.txt b/src/jit/CMakeLists.txt
index 7f1a0807b4..3e3bb50dc7 100644
--- a/src/jit/CMakeLists.txt
+++ b/src/jit/CMakeLists.txt
@@ -15,6 +15,10 @@ if (ARM_SOFTFP)
add_definitions(-DARM_SOFTFP)
endif (ARM_SOFTFP)
+if(WIN32)
+ set(JIT_RESOURCES Native.rc)
+endif(WIN32)
+
set( JIT_SOURCES
alloc.cpp
assertionprop.cpp
@@ -139,6 +143,7 @@ set( SOURCES
${JIT_SOURCES}
${ARCH_SOURCES}
${ARCH_LEGACY_SOURCES}
+ ${JIT_RESOURCES}
)
convert_to_absolute_path(SOURCES ${SOURCES})
@@ -191,6 +196,10 @@ if (CLR_BUILD_JIT32)
set(JIT_BASE_NAME ryujit)
endif()
+if(WIN32)
+ add_definitions(-DFX_VER_INTERNALNAME_STR=${JIT_BASE_NAME}.dll)
+endif(WIN32)
+
add_subdirectory(dll)
add_subdirectory(crossgen)
add_subdirectory(standalone)