Support loongarch64

This commit is contained in:
LINxiansheng
2022-04-18 15:24:51 +08:00
committed by LINxiansheng
parent 6ea9991d84
commit 79d5b68e0a

View File

@ -26,12 +26,19 @@ ob_lib_add_target(oblib_lib_coro_context
coro/context/asm/make_sw_64_sysv_elf_gas.S
coro/context/asm/jump_sw_64_sysv_elf_gas.S
coro/context/asm/ontop_sw_64_aapcs_elf_gas.S
coro/context/asm/jump_loongarch64_sysv_elf_gas.S
coro/context/asm/make_loongarch64_sysv_elf_gas.S
coro/context/asm/ontop_loongarch64_sysv_elf_gas.S
)
disable_pch(oblib_lib_coro_context)
if(${ARCHITECTURE} STREQUAL "loongarch64")
ob_lib_add_target(oblib_lib_coro_context_loongarch64
coro/context/asm/jump_loongarch64_sysv_elf_gas.S
coro/context/asm/make_loongarch64_sysv_elf_gas.S
coro/context/asm/ontop_loongarch64_sysv_elf_gas.S
)
disable_pch(oblib_lib_coro_context_loongarch64)
endif()
ob_set_subtarget(oblib_lib coro
coro/co_base_sched.cpp
coro/co_context.cpp