From d5ab4e5f7220648b4f831fd17d50d215b195dad1 Mon Sep 17 00:00:00 2001 From: Redbeanw44602 Date: Tue, 25 Mar 2025 15:50:23 +0800 Subject: [PATCH] fix: fix pch deps. --- xmake.lua | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/xmake.lua b/xmake.lua index f492f2f..6065edf 100644 --- a/xmake.lua +++ b/xmake.lua @@ -56,6 +56,11 @@ if is_mode('debug') then add_defines('LLVM_DISABLE_ABI_BREAKING_CHECKS_ENFORCING=1') end +add_packages('boost') +if is_plat('linux') or is_plat('macosx') then + add_defines('BOOST_STACKTRACE_USE_ADDR2LINE=1') +end + --- targets target('libdi') @@ -69,14 +74,10 @@ target('libdi') if is_plat('linux') then add_ldflags('$(shell llvm-config --libs)') -- xrepo llvm bug? end - if is_plat('linux') or is_plat('macosx') then - add_defines('BOOST_STACKTRACE_USE_ADDR2LINE=1') - end add_packages( 'xxhash', 'nlohmann_json', - 'boost', 'llvm' )