protojit.dll (Windows) / libprotojit.so (*nix) is produced in addition, which is a standalone Jit that are not attached to CoreCLR.
Note CoreCLR still embeds such Jit by default same as before to not disrupt the existing clients.
This (same) standalone Jit can be used for other testing purpose and also this can be specified as an altjit as well in CoreCLR.
Added to nuget dev package.
<file src="..\corerun.exe" target="lib\aspnetcore50\corerun.exe" />
<file src="..\mscorlib.dll" target="lib\aspnetcore50\mscorlib.dll" />
<file src="..\sos.dll" target="lib\aspnetcore50\sos.dll" />
+ <file src="..\protojit.dll" target="lib\aspnetcore50\protojit.dll" />
<file src="..\PDB\clretwrc.pdb" target="lib\aspnetcore50\clretwrc.pdb" />
<file src="..\PDB\coreclr.pdb" target="lib\aspnetcore50\coreclr.pdb" />
<file src="..\PDB\corerun.pdb" target="lib\aspnetcore50\corerun.pdb" />
<file src="..\PDB\corerun.pdb" target="lib\aspnetcore50\corerun.pdb" />
<file src="..\PDB\sos.pdb" target="lib\aspnetcore50\sos.pdb" />
<file src="..\PDB\mscorlib.pdb" target="lib\aspnetcore50\mscorlib.pdb" />
+ <file src="..\PDB\protojit.pdb" target="lib\aspnetcore50\protojit.pdb" />
<file src="..\inc\cor.h" target="inc\cor.h" />
<file src="..\inc\corerror.h" target="inc\corerror.h" />
<file src="..\inc\corhdr.h" target="inc\corhdr.h" />
<file src="..\corerun.exe" target="lib\aspnetcore50\corerun.exe" />
<file src="..\mscorlib.dll" target="lib\aspnetcore50\mscorlib.dll" />
<file src="..\sos.dll" target="lib\aspnetcore50\sos.dll" />
+ <file src="..\protojit.dll" target="lib\aspnetcore50\protojit.dll" />
<file src="..\PDB\clretwrc.pdb" target="lib\aspnetcore50\clretwrc.pdb" />
<file src="..\PDB\coreclr.pdb" target="lib\aspnetcore50\coreclr.pdb" />
<file src="..\PDB\corerun.pdb" target="lib\aspnetcore50\corerun.pdb" />
<file src="..\PDB\corerun.pdb" target="lib\aspnetcore50\corerun.pdb" />
<file src="..\PDB\sos.pdb" target="lib\aspnetcore50\sos.pdb" />
<file src="..\PDB\mscorlib.pdb" target="lib\aspnetcore50\mscorlib.pdb" />
+ <file src="..\PDB\protojit.pdb" target="lib\aspnetcore50\protojit.pdb" />
<file src="..\inc\cor.h" target="inc\cor.h" />
<file src="..\inc\corerror.h" target="inc\corerror.h" />
<file src="..\inc\corhdr.h" target="inc\corhdr.h" />
add_subdirectory(dll)
add_subdirectory(crossgen)
+add_subdirectory(standalone)
return (g_hInst);
}
+extern "C"
void __stdcall sxsJitStartup(CoreClrCallbacks const & cccallbacks)
{
#ifndef SELF_NO_HOST
--- /dev/null
+project(protojit)
+add_definitions(-DFEATURE_NO_HOST)
+add_definitions(-DSELF_NO_HOST)
+add_definitions(-DFEATURE_READYTORUN_COMPILER)
+remove_definitions(-DFEATURE_MERGE_JIT_AND_ENGINE)
+
+add_library(protojit
+ SHARED
+ ${SHARED_LIB_SOURCES}
+)
+
+set(PROTOJIT_LINK_LIBRARIES
+ utilcodestaticnohost
+ gcinfo
+)
+
+if(CLR_CMAKE_PLATFORM_UNIX)
+ list(APPEND PROTOJIT_LINK_LIBRARIES
+ mscorrc_debug
+ coreclrpal
+ palrt
+ )
+else()
+ list(APPEND PROTOJIT_LINK_LIBRARIES
+ msvcrt.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(protojit
+ ${PROTOJIT_LINK_LIBRARIES}
+)
+
+# add the install targets
+install (TARGETS protojit DESTINATION .)
+if(WIN32)
+ install (FILES ${CMAKE_CURRENT_BINARY_DIR}/$<CONFIG>/protojit.pdb DESTINATION PDB)
+endif(WIN32)