From 648f4e11c983f955829853a3a5130dfa482c9df0 Mon Sep 17 00:00:00 2001 From: segfault-bilibili Date: Fri, 23 Jun 2023 16:18:58 +0800 Subject: [PATCH] fix compilation error (#232) --- builtin-plugin/SymbolResolver/CMakeLists.txt | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/builtin-plugin/SymbolResolver/CMakeLists.txt b/builtin-plugin/SymbolResolver/CMakeLists.txt index 2bf6a6ac..5df6cf79 100644 --- a/builtin-plugin/SymbolResolver/CMakeLists.txt +++ b/builtin-plugin/SymbolResolver/CMakeLists.txt @@ -36,15 +36,17 @@ if (SYSTEM.Windows) ) endif () -add_library(macho_ctx_kit - macho/macho_ctx.h - macho/macho_ctx.cc - ) +if (SYSTEM.Darwin) + add_library(macho_ctx_kit + macho/macho_ctx.h + macho/macho_ctx.cc + ) -add_library(shared_cache_ctx_kit - macho/shared_cache_ctx.h - macho/shared_cache_ctx.cpp - ) + add_library(shared_cache_ctx_kit + macho/shared_cache_ctx.h + macho/shared_cache_ctx.cpp + ) +endif () add_library(dobby_symbol_resolver ${SOURCE_FILE_LIST}