-
-
Notifications
You must be signed in to change notification settings - Fork 813
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
llvm-ar not detected #6040
Comments
you should use |
Don't you think that, if xmake detects toolchain from |
xmake has many toolchains that use clang, such as llvm, clang, mingw/clang, and they all have some differences in use. You cannot accurately determine what toolchain to use by setting $CC/$CXX. In xmake, if you set environment variables such as $CC, it means that you need complete fine-grained control of all toolchains. You need to specify $AR yourself to configure and use ar or llvm-ar. . If you want to use toolchains such as llvm-ar llvm/clang, use |
Will you approve the pull request if it includes the following logic: Take the path to the detected toolchain (CC or CXX), and when attempting to locate |
But this is difficult to implement, currently the parsing of $CC is delayed. We can't handle them in on_load. https://github.com/xmake-io/xmake/blob/dev/xmake/toolchains/envs/xmake.lua |
Xmake Version
2.9.7+20241219
Operating System Version and Architecture
macOS 15.2 arm
Describe Bug
clang
andclang++
is detected from homebrew, butar
is used from AppleClang instead ofllvm-ar
ar
is used from AppleClang:Expected Behavior
If clang is used from homebrew, then llvm-ar should be also used from homebrew. Consistent toolchain should be used.
Project Configuration
Bash is used as default shell.
In ~/.bash_profile
xmake.lua
Delete
~/.xmake/cache
and~/.xmake/packages
before the build.Additional Information and Error Logs
xmake -vD -y
The text was updated successfully, but these errors were encountered: