commit | b3037a45ece8b8b4937d8c5d35805338fa4527b5 | [log] [tgz] |
---|---|---|
author | Lukasz Anforowicz <lukasza@google.com> | Fri Sep 23 08:04:09 2022 -0700 |
committer | Copybara-Service <copybara-worker@google.com> | Fri Sep 23 08:04:49 2022 -0700 |
tree | 6b6101b2d7d8090d54b9f30f1924e12c14e362a8 | |
parent | c3452843753dd842348c636d1eebaf1d1da0a847 [diff] |
Make `impl rustc_driver::Callbacks` a private detail of `bindings_driver`. Before this CL, `bindings_driver::RunCompiler` would publically implement `rustc_driver::Callbacks` trait, making it theoretically possible to use the callbacks twice (which would trigger the asserts related to `bindings_main_result`). After this CL, the trait `impl` is hidden as a private detail of the `bindings_driver` module. PiperOrigin-RevId: 476371937
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