ci: setup linux build. (#4)

This commit is contained in:
2025-03-11 18:20:04 +08:00
committed by GitHub
parent 1a28a84635
commit fbf2cb43ad
2 changed files with 73 additions and 11 deletions

View File

@@ -63,8 +63,12 @@ target('libdi')
remove_files('src/tools/**')
set_basename('di')
add_ldflags('$(shell llvm-config --libs)') -- xrepo llvm bug?
add_packages(
'nlohmann_json'
'xxhash',
'nlohmann_json',
'llvm'
)
target('askrva')
@@ -111,15 +115,10 @@ target('extractsym')
set_pcxxheader('src/pch.h')
add_packages(
'llvm',
'nlohmann_json',
'argparse'
)
if is_plat('linux') then -- workaround to fix link problem.
add_links('LLVM')
end
target('makepdb')
set_kind('binary')
add_deps('libdi')
@@ -127,11 +126,6 @@ target('makepdb')
set_pcxxheader('src/pch.h')
add_packages(
'llvm',
'nlohmann_json',
'argparse'
)
if is_plat('linux') then
add_links('LLVM')
end