commit | 319bcac599ca7944b77378e57f7a11903b18c78b | [log] [tgz] |
---|---|---|
author | Devin Jeanpierre <jeanpierreda@google.com> | Tue Mar 14 17:49:08 2023 -0700 |
committer | Copybara-Service <copybara-worker@google.com> | Tue Mar 14 17:49:42 2023 -0700 |
tree | e7bacfa2b99196688b3b88f03568edfd442e96f9 | |
parent | cf60f5279ff2fcc8a4ec6168cb11bb5171f45153 [diff] |
Use `supported | experimental` features everywhere in tests. This actually was a bit tricky to implement, because it broke the formatting -- I discovered we use rustfmt for formatting the `Debug` output, which, while it mkaes sense, seems probably unnecessary if we do some plumbing. But I couldn't figure out the plumbing right now, so I filed b/272530008 instead. After reflecting for this bug for a bit, I decided the sensible thing is to try to share the logic for both in one helper function, even if it seems a little awkward to do so -- having _no_ shared functionality is essentially what caused it. PiperOrigin-RevId: 516681109
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