Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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)

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