34 lines
1020 B
Diff
34 lines
1020 B
Diff
From 7ccb6aa7c216401aea1cf09adeb7d07ce077580b Mon Sep 17 00:00:00 2001
|
|
From: liushuyu <liushuyu011@gmail.com>
|
|
Date: Mon, 12 Sep 2022 23:01:44 -0600
|
|
Subject: [PATCH] common: do not link to xbyak on non-amd64 architectures
|
|
|
|
---
|
|
src/common/CMakeLists.txt | 3 ++-
|
|
1 file changed, 2 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/src/common/CMakeLists.txt b/src/common/CMakeLists.txt
|
|
index 635fb85c8..b1e0ba6cc 100644
|
|
--- a/src/common/CMakeLists.txt
|
|
+++ b/src/common/CMakeLists.txt
|
|
@@ -166,6 +166,7 @@ if(ARCHITECTURE_x86_64)
|
|
x64/xbyak_abi.h
|
|
x64/xbyak_util.h
|
|
)
|
|
+ target_link_libraries(common PRIVATE xbyak)
|
|
endif()
|
|
|
|
if (MSVC)
|
|
@@ -189,7 +190,7 @@ endif()
|
|
create_target_directory_groups(common)
|
|
|
|
target_link_libraries(common PUBLIC ${Boost_LIBRARIES} fmt::fmt microprofile Threads::Threads)
|
|
-target_link_libraries(common PRIVATE lz4::lz4 xbyak)
|
|
+target_link_libraries(common PRIVATE lz4::lz4)
|
|
if (TARGET zstd::zstd)
|
|
target_link_libraries(common PRIVATE zstd::zstd)
|
|
else()
|
|
--
|
|
2.37.3
|
|
|