Skip to content

Commit

Permalink
Merge pull request #724 from Tencent/feature/ios-fix
Browse files Browse the repository at this point in the history
Fix iOS makefile build break
  • Loading branch information
chzhij5 authored Feb 24, 2022
2 parents 6144583 + 3b5e025 commit 9a75377
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,21 +25,26 @@ extern "C" {
#include <KSStackCursor.h>

// a lite version of STRUCT_MCONTEXT_L in KSMachineContext
#ifdef __arm64__
#if defined(__arm64__)
typedef struct {
_STRUCT_ARM_EXCEPTION_STATE64 __es;
_STRUCT_ARM_THREAD_STATE64 __ss;
} KSCpuContext;
#elif __arm__
#elif defined(__arm__)
typedef struct {
_STRUCT_ARM_EXCEPTION_STATE __es;
_STRUCT_ARM_THREAD_STATE __ss;
} KSCpuContext;
#elif __x86_64__
#elif defined(__x86_64__)
typedef struct {
_STRUCT_X86_EXCEPTION_STATE64 __es;
_STRUCT_X86_THREAD_STATE64 __ss;
} KSCpuContext;
#elif defined(__i386__)
typedef struct {
_STRUCT_X86_EXCEPTION_STATE32 __es;
_STRUCT_X86_THREAD_STATE32 __ss;
} KSCpuContext;
#endif

// a lite version of KSMachineContext
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ struct pthread_stack_info {
uintptr_t stackbot;
};

#if defined(__arm64__) || defined(__x86_64__)
static_assert(sizeof(pthread_stack_info) == (1 << 11), "Not aligned!");
#endif

// maybe fail
void memory_logging_pthread_introspection_hook_install();
Expand Down
2 changes: 1 addition & 1 deletion matrix/matrix-iOS/makefile-MacOS
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
TARGET_NAME = Matrix
TARGET_NAME = MatrixMac
PRODUCT_NAME = Matrix
PROJECT_DIR = ./Matrix
PROJECT_NAME = $(PROJECT_DIR)/Matrix.xcodeproj
Expand Down
2 changes: 1 addition & 1 deletion matrix/matrix-iOS/makefile-iOS
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
TARGET_NAME = Matrix
TARGET_NAME = MatrixiOS
PRODUCT_NAME = Matrix
PROJECT_DIR = ./Matrix
PROJECT_NAME = $(PROJECT_DIR)/Matrix.xcodeproj
Expand Down

0 comments on commit 9a75377

Please sign in to comment.