commit | c354da9ba313fc6bbd8903cd6d9272fd59261a1e | [log] [tgz] |
---|---|---|
author | Lukasz Anforowicz <lukasza@google.com> | Wed Dec 14 21:03:01 2022 -0800 |
committer | Copybara-Service <copybara-worker@google.com> | Wed Dec 14 21:03:41 2022 -0800 |
tree | f9031e50153d30b184d4e204b0f62875fd9654a9 | |
parent | 4156e26f055e052f8954b6bfc14089c9bb233839 [diff] |
More robust test for definition reordering. Before this CL definition reordering *was* covered by an end-to-end test under `cc_bindings_from_rs/test/structs`, but: 1) it was unnecessarily tangled with test of other features and 2) it only required reordering if bindings would be generated in the original source order, and 3) it didn't force a module/namespace to be split in two chunks (which is why namespace handling in b/258265044 isn't done top-down). This CL tweaks to tests to fix these issues. PiperOrigin-RevId: 495495236
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