Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MONO] Move Marshal-ilgen into a component #75542

Merged
merged 17 commits into from
Nov 15, 2022
6 changes: 3 additions & 3 deletions src/mono/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ set(CMAKE_CXX_FLAGS_CHECKED "")
set(CMAKE_EXE_LINKER_FLAGS_CHECKED "")
set(CMAKE_SHARED_LINKER_FLAGS_CHECKED "")

# This is always enabled now, and we should go through the code to remove the case here it is not defined
set(ENABLE_ILGEN 1)
naricc marked this conversation as resolved.
Show resolved Hide resolved

if(NOT MONO_LIB_NAME)
set(MONO_LIB_NAME "monosgen-2.0")
endif()
Expand Down Expand Up @@ -75,9 +78,6 @@ set(DISABLE_COM 1)
if(ENABLE_INTERP_LIB)
set(DISABLE_INTERPRETER 1)
endif()
if(NOT DISABLE_INTERPRETER OR NOT DISABLE_JIT)
set(ENABLE_ILGEN 1)
endif()
if(NOT DISABLE_EVENTPIPE)
set(ENABLE_PERFTRACING 1)
endif()
Expand Down
4 changes: 4 additions & 0 deletions src/mono/mono/component/marshal-ilgen.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@
#include "metadata/marshal.h"
#include "mono/component/component.h"

#if !defined(ENABLE_ILGEN)
# error ENABLE_ILGEN is always required now
#endif

typedef struct MonoComponentMarshalILgen {
MonoComponent component;
void (*ilgen_init_internal) (void);
Expand Down