commit | 1583cd9eba6e01353a71132ccdba54e0dc6b91d7 | [log] [tgz] |
---|---|---|
author | Devin Jeanpierre <jeanpierreda@google.com> | Fri May 27 04:38:38 2022 -0700 |
committer | Copybara-Service <copybara-worker@google.com> | Fri May 27 04:39:13 2022 -0700 |
tree | 9893847a5dc0bbda27417c2e51c2b087d737a92b | |
parent | a68fdbc7b6c1910f632e3c18d8b52b0a304abf8e [diff] |
Add test for converting lifetime names to tokens. Worth, uh, mentioning just obliquely that the ToTokens implementation can fail. (Was true of the old code too.) There's no validation coming in from the IR that the name string doesn't e.g. have quotes or spaces in it, etc. At some point we will want to tighten up the IR, but not today. PiperOrigin-RevId: 451363614
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 $ cmake --build build -j $ # wait... $ cd ../crubit $ PREBUILT_LLVM_PATH=../llvm-project bazel build //rs_bindings_from_cc:rs_bindings_from_cc_impl