diff --git a/executer/user/CMakeLists.txt b/executer/user/CMakeLists.txt index e9076be4..de3fdd8f 100644 --- a/executer/user/CMakeLists.txt +++ b/executer/user/CMakeLists.txt @@ -58,6 +58,9 @@ endif() if (ENABLE_UTI) add_library(mck_syscall_intercept SHARED syscall_intercept.c arch/${ARCH}/archdep_c.c) + if (${ARCH} STREQUAL "arm64") + set_source_files_properties(syscall_intercept.c PROPERTIES COMPILE_FLAGS -mgeneral-regs-only) + endif() target_link_libraries(mck_syscall_intercept ${LIBSYSCALL_INTERCEPT_LIBRARIES}) target_include_directories(mck_syscall_intercept PRIVATE ${LIBSYSCALL_INTERCEPT_INCLUDE_DIRS}) set_target_properties(mck_syscall_intercept PROPERTIES INSTALL_RPATH_USE_LINK_PATH TRUE)