commit | 8028175c1fa9b65a4065334791d872b52b93707d | [log] [tgz] |
---|---|---|
author | Googler <no-reply@google.com> | Wed Sep 07 17:46:38 2022 -0700 |
committer | Copybara-Service <copybara-worker@google.com> | Wed Sep 07 17:47:13 2022 -0700 |
tree | 27d172101a6a5f09c969e34d7e5e1db3ce17d2a1 | |
parent | ed94b24f8453bb947d4e4e556ab38cdf4c2e5247 [diff] |
Integrate LLVM at llvm/llvm-project@3e7350f3173b Updates LLVM usage to match [3e7350f3173b](https://github.com/llvm/llvm-project/commit/3e7350f3173b) PiperOrigin-RevId: 472857384
Extremely experimental interop tooling for C++ and Rust.
Please don‘t use, this is an experiment and we don’t yet know where will it take us. There will be breaking changes without warning. Unfortunately, we can't take contributions at this point.
$ apt install clang lld bazel $ git clone git@github.com:google/crubit.git $ cd crubit $ bazel build --linkopt=-fuse-ld=/usr/bin/ld.lld //rs_bindings_from_cc:rs_bindings_from_cc_impl
$ git clone https://github.com/llvm/llvm-project $ cd llvm-project $ CC=clang CXX=clang++ cmake -S llvm -B build -DLLVM_ENABLE_PROJECTS='clang' -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=install $ cmake --build build -j $ # wait... $ cmake --install build $ cd ../crubit $ LLVM_INSTALL_PATH=../llvm-project/install bazel build //rs_bindings_from_cc:rs_bindings_from_cc_impl