commit | a18aab8638a00ae342e54fdf8f1db41cca033f2f | [log] [tgz] |
---|---|---|
author | Lukasz Anforowicz <lukasza@google.com> | Thu Sep 29 11:18:06 2022 -0700 |
committer | Copybara-Service <copybara-worker@google.com> | Thu Sep 29 11:18:33 2022 -0700 |
tree | 7aa508b1878e0f64f1ad55b8549f1ea6c0aae7e6 | |
parent | ed1c4f04d4671752f32ea00f13db13f964d89fde [diff] |
Add support for `--help` flag. This CL switches from using `getopts` to using `clap`: - `clap` has built-in support for `--help` - `clap` in general seems to have a nicer API (e.g. `getopts` required somewhat repetitive/redundant calls to `reqopt` and `opt_str`, passing the same `H_OUT` in both cases). PiperOrigin-RevId: 477774149
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