This commit is contained in:
2023-12-28 22:05:44 +08:00
parent 55560a2474
commit f389666ea6

View File

@@ -191,7 +191,7 @@ else()
string(FIND "${UC_COMPILER_MACRO}" "__arm__" UC_RET)
if(${UC_RET} GREATER_EQUAL "0")
set(UNICORN_TARGET_ARCH "arm")
set(UNICORN_CFLAGS "${UNICORN_CFLAGS} -latomic")
set(UNICORN_CFLAGS ${UNICORN_CFLAGS} -latomic)
break()
endif()
string(FIND "${UC_COMPILER_MACRO}" "__aarch64__" UC_RET)
@@ -222,7 +222,7 @@ else()
string(FIND "${UC_COMPILER_MACRO}" "__riscv" UC_RET)
if(${UC_RET} GREATER_EQUAL "0")
set(UNICORN_TARGET_ARCH "riscv")
set(UNICORN_CFLAGS "${UNICORN_CFLAGS} -latomic")
set(UNICORN_CFLAGS ${UNICORN_CFLAGS} -latomic)
break()
endif()
string(FIND "${UC_COMPILER_MACRO}" "__s390__" UC_RET)