We don't need to build the static lib and crossgen static lib
versions of the JIT unless FEATURE_MERGE_JIT_AND_ENGINE is set.
And, since we currently don't set it, this means doing two
fewer JIT builds.
Commit migrated from https://github.com/dotnet/coreclr/commit/
91681810db13a23fa7fc0437340946bf8cfe140b
add_custom_target(jit_exports DEPENDS ${JIT_EXPORTS_FILE})
-add_subdirectory(dll)
-add_subdirectory(crossgen)
+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)
+ add_subdirectory(crossgen)
+endif (FEATURE_MERGE_JIT_AND_ENGINE)
+
add_subdirectory(standalone)
if (CLR_CMAKE_PLATFORM_ARCH_ARM)