Skip to content
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

Consider defaulting to ar command for static linking, instead of llvm-ar #3542

Closed
keynmol opened this issue Oct 6, 2023 · 0 comments · Fixed by #3548
Closed

Consider defaulting to ar command for static linking, instead of llvm-ar #3542

keynmol opened this issue Oct 6, 2023 · 0 comments · Fixed by #3548

Comments

@keynmol
Copy link
Contributor

keynmol commented Oct 6, 2023

Currently we hard request llvm-ar and corresponding LLVM_BIN installation to be available.
This causes friction in environments where we use the globally installed clang.

ar command can do the same things (with object files, not LLVM bitcode), but it's available by default.

I propose we try to use ar if llvm-ar is not available.

https://sourcegraph.com/github.com/scala-native/scala-native/-/blob/tools/src/main/scala/scala/scalanative/build/LLVM.scala?L255:37

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 a pull request may close this issue.

1 participant