Skip to content

Commit b6daf20

Browse files
committed
Sync changes from IL2CPP 85698322c225ff1be2bc71c65a00b64d67d71a24
Added a building test for building with the debugger code generation enabled but the debugger turned "off" via the IL2CPP_MONO_DEBUGGER preprocessor define.
1 parent cb33cc6 commit b6daf20

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

mono/metadata/il2cpp-compat-metadata.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#pragma once
22

3-
#ifdef IL2CPP_MONO_DEBUGGER
3+
#ifdef RUNTIME_IL2CPP
44

55
#include <mono/sgen/sgen-conf.h>
66
#include <mono/metadata/mono-gc.h>
@@ -33,4 +33,4 @@ void* il2cpp_mono_gc_invoke_with_gc_lock (MonoGCLockedCallbackFunc func, void *d
3333
int il2cpp_mono_gc_pthread_create (pthread_t *new_thread, const pthread_attr_t *attr, void *(*start_routine)(void *), void *arg);
3434
#endif
3535

36-
#endif
36+
#endif

mono/mini/il2cpp-stubs.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1505,7 +1505,11 @@ char* il2cpp_assembly_get_full_name(MonoAssembly *assembly)
15051505

15061506
const MonoMethod* il2cpp_get_seq_point_method(Il2CppSequencePoint *seqPoint)
15071507
{
1508+
#if IL2CPP_MONO_DEBUGGER
15081509
return il2cpp::utils::Debugger::GetSequencePointMethod(seqPoint);
1510+
#else
1511+
return NULL;
1512+
#endif
15091513
}
15101514

15111515
const MonoClass* il2cpp_get_class_from_index(int index)

0 commit comments

Comments
 (0)