diff options
author | Jonghyun Park <parjong@gmail.com> | 2017-06-01 14:50:13 +0900 |
---|---|---|
committer | Jonghyun Park <parjong@gmail.com> | 2017-07-04 11:53:24 +0900 |
commit | 06a7b5b7c6cbaf2390a3916fbfb1b3ea06a7e420 (patch) | |
tree | 7868f7b02964890715503931b3e0ed4a2fd58301 | |
parent | 2b5da8429093ad757849686fd668330a3102a1a5 (diff) | |
download | coreclr-06a7b5b7c6cbaf2390a3916fbfb1b3ea06a7e420.tar.gz coreclr-06a7b5b7c6cbaf2390a3916fbfb1b3ea06a7e420.tar.bz2 coreclr-06a7b5b7c6cbaf2390a3916fbfb1b3ea06a7e420.zip |
Fix missing refernces in FEATURE_MERGE_JIT_AND_ENGINT
-rw-r--r-- | src/jit/CMakeLists.txt | 29 | ||||
-rw-r--r-- | src/jit/crossgen/CMakeLists.txt | 3 | ||||
-rw-r--r-- | src/jit/standalone/CMakeLists.txt | 29 | ||||
-rw-r--r-- | src/zap/crossgen/CMakeLists.txt | 3 |
4 files changed, 35 insertions, 29 deletions
diff --git a/src/jit/CMakeLists.txt b/src/jit/CMakeLists.txt index b34cf63410..87c47b5aca 100644 --- a/src/jit/CMakeLists.txt +++ b/src/jit/CMakeLists.txt @@ -212,6 +212,35 @@ endif() add_custom_target(jit_exports DEPENDS ${JIT_EXPORTS_FILE}) +set(RYUJIT_LINK_LIBRARIES + utilcodestaticnohost + gcinfo +) + +if(CLR_CMAKE_PLATFORM_UNIX) + list(APPEND RYUJIT_LINK_LIBRARIES + mscorrc_debug + coreclrpal + palrt + ) +else() + list(APPEND RYUJIT_LINK_LIBRARIES + ${STATIC_MT_CRT_LIB} + ${STATIC_MT_VCRT_LIB} + kernel32.lib + advapi32.lib + ole32.lib + oleaut32.lib + uuid.lib + user32.lib + version.lib + shlwapi.lib + bcrypt.lib + crypt32.lib + RuntimeObject.lib + ) +endif(CLR_CMAKE_PLATFORM_UNIX) + if (FEATURE_MERGE_JIT_AND_ENGINE) # Despite the directory being named "dll", it creates a static library "clrjit_static" to link into the VM. add_subdirectory(dll) diff --git a/src/jit/crossgen/CMakeLists.txt b/src/jit/crossgen/CMakeLists.txt index 4d49a319b8..5c1ccc7e8e 100644 --- a/src/jit/crossgen/CMakeLists.txt +++ b/src/jit/crossgen/CMakeLists.txt @@ -5,3 +5,6 @@ if(CLR_CMAKE_TARGET_ARCH_ARM) endif() add_library_clr(clrjit_crossgen ${SOURCES} ${JIT_ARCH_SOURCES}) +if(FEATURE_MERGE_JIT_AND_ENGINE) + target_link_libraries(clrjit_crossgen ${RYUJIT_LINK_LIBRARIES}) +endif(FEATURE_MERGE_JIT_AND_ENGINE) diff --git a/src/jit/standalone/CMakeLists.txt b/src/jit/standalone/CMakeLists.txt index 769b84205b..3111b03595 100644 --- a/src/jit/standalone/CMakeLists.txt +++ b/src/jit/standalone/CMakeLists.txt @@ -27,35 +27,6 @@ add_dependencies(clrjit jit_exports) set_property(TARGET clrjit APPEND_STRING PROPERTY LINK_FLAGS ${JIT_EXPORTS_LINKER_OPTION}) set_property(TARGET clrjit APPEND_STRING PROPERTY LINK_DEPENDS ${JIT_EXPORTS_FILE}) -set(RYUJIT_LINK_LIBRARIES - utilcodestaticnohost - gcinfo -) - -if(CLR_CMAKE_PLATFORM_UNIX) - list(APPEND RYUJIT_LINK_LIBRARIES - mscorrc_debug - coreclrpal - palrt - ) -else() - list(APPEND RYUJIT_LINK_LIBRARIES - ${STATIC_MT_CRT_LIB} - ${STATIC_MT_VCRT_LIB} - kernel32.lib - advapi32.lib - ole32.lib - oleaut32.lib - uuid.lib - user32.lib - version.lib - shlwapi.lib - bcrypt.lib - crypt32.lib - RuntimeObject.lib - ) -endif(CLR_CMAKE_PLATFORM_UNIX) - target_link_libraries(clrjit ${RYUJIT_LINK_LIBRARIES} ) diff --git a/src/zap/crossgen/CMakeLists.txt b/src/zap/crossgen/CMakeLists.txt index 8cc6b38ad3..3d6ab23f1e 100644 --- a/src/zap/crossgen/CMakeLists.txt +++ b/src/zap/crossgen/CMakeLists.txt @@ -26,3 +26,6 @@ endif (FEATURE_READYTORUN) add_precompiled_header(common.h ../common.cpp ZAP_SOURCES) add_library_clr(corzap_crossgen STATIC ${ZAP_SOURCES}) +if(FEATURE_MERGE_JIT_AND_ENGINE) + target_link_libraries(corzap_crossgen clrjit_crossgen) +endif(FEATURE_MERGE_JIT_AND_ENGINE) |