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

[Minor] Allow USE_LLVM to take extra arguments #3954

Merged
merged 1 commit into from
Sep 14, 2019
Merged

[Minor] Allow USE_LLVM to take extra arguments #3954

merged 1 commit into from
Sep 14, 2019

Conversation

junrushao
Copy link
Member

@junrushao junrushao commented Sep 13, 2019

This is a trivial improvement that allows cmake to call llvm-config with extra arguments. For example, we can set USE_LLVM to be llvm-config --ignore-libllvm to force linking to static LLVM libraries, i.e. libLLVM*.a.

CC: @icemelon9 @were @szha @Laurawly

@junrushao junrushao changed the title Allow USE_LLVM to take extra arguments [Minor] Allow USE_LLVM to take extra arguments Sep 13, 2019
@junrushao
Copy link
Member Author

In my case (LLVM-8 and TVM master HEAD)

Link to static LLVM: 76 M
Link to shared LLVM: 18 M

@junrushao
Copy link
Member Author

@tqchen Could you help review? Thanks!

@tqchen tqchen merged commit e35e1cc into apache:master Sep 14, 2019
wweic pushed a commit to wweic/tvm that referenced this pull request Sep 16, 2019
wweic pushed a commit to wweic/tvm that referenced this pull request Sep 16, 2019
wweic pushed a commit to neo-ai/tvm that referenced this pull request Sep 16, 2019
@junrushao junrushao deleted the enhance-llvm-config branch January 6, 2022 02:58
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