-
Notifications
You must be signed in to change notification settings - Fork 190
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
Link LLVM-based tools dynamically to LLVM #397
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -78,6 +78,8 @@ build/llvm.BUILT: | |
-DCLANG_LINKS_TO_CREATE="$(call join-with,;,$(CLANG_LINKS_TO_CREATE))" \ | ||
-DCMAKE_BUILD_TYPE=MinSizeRel \ | ||
-DLLVM_ENABLE_TERMINFO=OFF \ | ||
-DLLVM_LINK_LLVM_DYLIB=ON \ | ||
-DLLVM_VERSION_SUFFIX=-wasi-sdk \ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Does this mean that There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Looks like it's just the
can confirm that |
||
-DLLVM_ENABLE_ZLIB=OFF \ | ||
-DLLVM_ENABLE_ZSTD=OFF \ | ||
-DLLVM_STATIC_LINK_CXX_STDLIB=ON \ | ||
|
@@ -118,6 +120,8 @@ build/llvm.BUILT: | |
install-objdump \ | ||
install-objcopy \ | ||
install-c++filt \ | ||
install-LLVM \ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Does this install anything more than Is this technically needed? Does There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. For this I found that as-is without adding this
to see the missing deps I ran:
I wasn't sure how best to install these so I poked around the tab-completions of I ran
and for
Sorry if this is a bit verbose, but I don't really have much of an idea of what I'm doing, I'm sort of just hitting the first thing that works and putting it here. I am by no means an expert in CMake, LLVM's build system, or how all this is supposed to interact. My buest guest to your questions is:
Judging from the above I think not, but I wouldn't say that with certainty.
Apparently not, because if I left this out I'm not sure if there's some other umbrella |
||
install-clang-cpp \ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What does this line install? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I commented a bit more above on this, but I thought |
||
llvm-config | ||
touch build/llvm.BUILT | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds good to me if it works. I assume the
rpath
stuff in the binaries is setup so that they can find the.so
files relative to themselves?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe so yeah,
bin/clang
has:I wasn't certain for other platforms so I was relying on CI here during
make check
to fail if there was an issue