commit | 785e6b4b56f61d2d22130400b8ef40c66aeae9c4 | [log] [tgz] |
---|---|---|
author | Googler <no-reply@google.com> | Mon Jan 23 12:11:36 2023 -0800 |
committer | Copybara-Service <copybara-worker@google.com> | Mon Jan 23 12:12:10 2023 -0800 |
tree | 5e871c4e096fb000a4b9a3fde16ad6de91e8d967 | |
parent | 50824888518f8713562526a04d461fb4f56a1838 [diff] |
Update format_unsupported_def's source location formatting logic to use format_source_loc instead. So that the way source location is formatted in the generated C++ code is consistent. PiperOrigin-RevId: 504048583
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