commit | 60292f4293e00f1d4b4e5566c5f601d19114f51e | [log] [tgz] |
---|---|---|
author | Roberto Bampi <bampi@google.com> | Mon Nov 07 08:07:00 2022 -0800 |
committer | Copybara-Service <copybara-worker@google.com> | Mon Nov 07 08:07:36 2022 -0800 |
tree | a0e8fbd826f2affbceb939555c39491939cb4b7c | |
parent | ebac841cf7cc5be5629ab6520788e41ef90c2c0e [diff] |
crubit: move MapKnownCcTypeToRsType to its own file. Before this change, the declaration of MapKnownCcTypeToRsType lived in decl_importer.h while the implementation lived in importer.cc. It wasn't possible for the declaration to be in importer.h as it would cause a dependency cycle. PiperOrigin-RevId: 486663837
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