commit | c3452843753dd842348c636d1eebaf1d1da0a847 | [log] [tgz] |
---|---|---|
author | Lukasz Anforowicz <lukasza@google.com> | Fri Sep 23 08:02:58 2022 -0700 |
committer | Copybara-Service <copybara-worker@google.com> | Fri Sep 23 08:03:34 2022 -0700 |
tree | 264f2df8fa0e38aaa975278f549afb91ff06e0c0 | |
parent | c72a9d86d8f13601343a41688ea3954c77fa2161 [diff] |
Refactor `run_compiler` into a method of `CompilerCallbacks`. This CL also renames `callbacks::CompilerCallbacks` into `bindings_driver::RunCompiler` which better reflects what this type does (and the naming and API shape nicely parallels that of `rustc_driver::RunCompiler`). PiperOrigin-RevId: 476371475
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