mirror of
https://github.com/darlinghq/darling-libobjc2.git
synced 2024-11-30 15:40:47 +00:00
Always use the first version of a class that's loaded twice until the merging code is a bit better tested.
This commit is contained in:
parent
23b26820f5
commit
95ef5a93f9
@ -46,6 +46,7 @@ libobjcxx_LDFLAGS = -lstdc++ -lobjc
|
||||
|
||||
ifneq ($(enable_legacy), no)
|
||||
libobjc_C_FILES += legacy_malloc.c
|
||||
libobjc_CPPFLAGS += -DNO_LEGACY
|
||||
endif
|
||||
|
||||
libobjc_HEADER_FILES_DIR = objc
|
||||
|
@ -375,6 +375,7 @@ void objc_load_class(struct objc_class *class)
|
||||
fprintf(stderr,
|
||||
"Loading two versions of %s. The class that will be used is undefined\n",
|
||||
class->name);
|
||||
return;
|
||||
}
|
||||
reload_class(class, existingClass);
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user