fix x86 dev build

This commit is contained in:
Nick Chan committed 2023-02-20 20:40:04 +08:00
1 parent 01bcc332cb
commit 06be39a71c
2 files changed
+4 -7

No files matched your search

+2 -5
View File
@@ -10,12 +10,9 @@ OBJECTS += xxd-libcheckra1nhelper.dylib.o
endif endif
endif endif
ifeq (,$(findstring xxd-libcheckra1nhelper.dylib.o, $(CFLAGS))) ifeq ($(FORCE_HELPER),1)
ifeq ($(TARGET_OS),Darwin)
ifeq ($(DEV_BUILD),1)
OBJECTS += xxd-libcheckra1nhelper.dylib.o OBJECTS += xxd-libcheckra1nhelper.dylib.o
endif CFLAGS += -DFORCE_HELPER
endif
endif endif
ifneq ($(NO_RAMDISK),1) ifneq ($(NO_RAMDISK),1)
+2 -2
View File
@@ -59,7 +59,7 @@ int exec_checkra1n() {
unlink(checkra1n_path); unlink(checkra1n_path);
return -1; return -1;
} }
#if defined(__APPLE__) && (TARGET_OS_IPHONE || defined(DEV_BUILD)) #if defined(__APPLE__) && defined(__arm64__) && (TARGET_OS_IPHONE || defined(FORCE_HELPER))
char* libcheckra1nhelper_dylib_path = NULL; char* libcheckra1nhelper_dylib_path = NULL;
{ {
struct utsname name; struct utsname name;
@@ -123,7 +123,7 @@ checkra1n_exec: {};
free(checkra1n_path); free(checkra1n_path);
checkra1n_path = NULL; checkra1n_path = NULL;
} }
#if defined(__APPLE__) && (TARGET_OS_IPHONE || defined(DEV_BUILD)) #if defined(__APPLE__) && defined(__arm64__) && (TARGET_OS_IPHONE || defined(FORCE_HELPER))
if (libcheckra1nhelper_dylib_path != NULL) { if (libcheckra1nhelper_dylib_path != NULL) {
unlink(libcheckra1nhelper_dylib_path); unlink(libcheckra1nhelper_dylib_path);
unsetenv("DYLD_INSERT_LIBRARIES"); unsetenv("DYLD_INSERT_LIBRARIES");