Skip to content

Add llvm-dlltool support#6410

Merged
waruqi merged 1 commit intoxmake-io:devfrom
star-hengxing:llvm-dlltool
May 9, 2025
Merged

Add llvm-dlltool support#6410
waruqi merged 1 commit intoxmake-io:devfrom
star-hengxing:llvm-dlltool

Conversation

@star-hengxing
Copy link
Contributor

@star-hengxing star-hengxing commented May 8, 2025

  • Add find_llvm_dlltool.
  • Add meson + msvc-wine support.
  • Add dlltool toolset for clang & clang-cl & llvm & zig toolchain.

local envs = {}
if not is_host("windows") and package:is_plat("windows") then
local msvc = package:toolchain("msvc") or package:toolchain("clang") or package:toolchain("clang-cl")
assert(msvc:check(), "msvc envs not found!") -- we need to check vs envs if it has been not checked yet
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang 不代表一定是 msvc envs吧

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

没懂,windows 平台没有 msvc envs 还能构建么。


我这里试过一个 meson 库用 clang toolchains 没啥问题。

@waruqi waruqi added this to the v3.0.0 milestone May 9, 2025
@waruqi waruqi merged commit accf9cd into xmake-io:dev May 9, 2025
22 checks passed
@star-hengxing star-hengxing deleted the llvm-dlltool branch May 9, 2025 02:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants