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

[Bugfix][Build] Fix building with LLVM-10 on macOS #5859

Merged
merged 1 commit into from
Jun 22, 2020
Merged

[Bugfix][Build] Fix building with LLVM-10 on macOS #5859

merged 1 commit into from
Jun 22, 2020

Conversation

junrushao
Copy link
Member

Per discussion: https://discuss.tvm.ai/t/latest-tvm-failed-to-build-on-mac-osx-with-llvm10/6993

The issue is found to be caused by LLVM's CMake returning nothing: llvm_map_components_to_libnames(LLVM_LIBS "all"). To fix this, this patch checks if "LLVM_LIBS" is empty, and if so, it falls back to use "llvm-config" to configure the project.

Could you confirm on your side? Thanks! @Lyken17 @kparzysz-quic @antinucleon

@Lyken17
Copy link
Contributor

Lyken17 commented Jun 22, 2020

I can confirm that this issue was resolved on my side. Thank you @junrushao1994 !

@junrushao
Copy link
Member Author

@tqchen @zhiics could you also take a look? :-)

@tqchen tqchen merged commit 03567b4 into apache:master Jun 22, 2020
@tqchen
Copy link
Member

tqchen commented Jun 22, 2020

Thanks @junrushao1994 @Lyken17

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.

3 participants