-
Notifications
You must be signed in to change notification settings - Fork 137
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
Enable LLVM toolchain for building LKL targets. #512
Conversation
72f4205
to
cfef154
Compare
@thehajime any idea why OpenVPN fails to install on the windows target? |
I have zero idea, sorry. my best guess is that the runner image of windows was updated last week and has some different behavior on the msi installation. you can delete (or comment out) the particular line on |
86c3c99
to
b46b072
Compare
Just added a CI target for clang-build test. The checkpatch emits a warning for use of |
sorry, it looks like the installation of openvpn isn't triggered at all. Even commenting out the line of interest, make test failed on windows due to lack of openvpn installation. please revert the changes on the comment out (the cat msi.log part); I will investigate it later independent from this PR. Thanks. |
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.
LGTM.
Please revert the change as I commented (#512 (comment)), other than that I'm fine with this patchset.
As for the warnings on volatile keyword, I'm fine with that too.
maybe we can close #478 if this is merged. |
To build LKL targets with clang/ld.lld provide LLVM and CROSS_COMPILE variables on the make command line in a similar way they used in the upstream Linux mainline: // to make LKL targets with the default versions of clang/ld.lld make -C tools/lkl LLVM=1 CROSS_COMPILE=x86_64-linux-gnu // to make LKL targets with clang/ld.lld in a specific location make -C tools/lkl LLVM=/usr/bin/ CROSS_COMPILE=x86_64-linux-gnu // to make LKL targets with a specific versions of clang/ld.lld, e.g. 13 make -C tools/lkl LLVM=-13 CROSS_COMPILE=x86_64-linux-gnu Additional documentation on LLVM/CROSS_COMPILE variables is available in Documentation/kbuild/llvm.rst. At the moment the LKL makefiles support x86_64-linux-gnu LLVM target only. Signed-off-by: Eugene Rodionov <rodionov@google.com>
Add a new target to build LKL tests with LLVM toolchain using clang/lld. Signed-off-by: Eugene Rodionov <rodionov@google.com>
Thank you, @thehajime! I reverted commented out changes in the yaml file. |
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.
LGTM, thanks Eugene!
Initial commit enabling clang for LKL to start with fuzzing.