commit | 069c6de37fa7a94c52707c083b15c6bf33b43c54 | [log] [tgz] |
---|---|---|
author | Dani Ferreira Franco Moura <danimoura@google.com> | Sat Dec 17 14:33:57 2022 -0800 |
committer | Copybara-Service <copybara-worker@google.com> | Sat Dec 17 14:34:43 2022 -0800 |
tree | 4f8075b21e1fc4ed055c5cc0021c55de72c0c7eb | |
parent | 97f5c618c7e86aac0611f0d57cd795ee28ea0394 [diff] |
Add fail-safe to prevent test crashes in nullability verification Tests with nested templates were crashing because we do not handle nested template arguments properly yet. In particular, we cannot use the current indexing strategy on nullability vectors when dealing with nested templates. This patch introduces a fail-safe to prevent out-of-bound crashes. Now, tests with nested templates may still fail (specifically, through false negatives), but should not crash. We will handle the false negatives in a future CL. PiperOrigin-RevId: 496126213
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