Khyber Sen

Results 242 comments of Khyber Sen

Ah, so it is related to old-style function declarations. We must be getting a different AST from clang, right?

On Fedora (and presumably it's the same on Arch), `cargo test --all-features -p c2rust-ast-exporter` causes the crash: ```shell [docker@docker c2rust]$ cargo test --all-features -p c2rust-ast-exporter Finished test [unoptimized + debuginfo]...

On Fedora, `libLLVM-12` and `libclang-cpp` are dynamically linked into the binary as shown by `ldd`, though they are not on Ubuntu, where things work. Though they are both linked in...

It appears the problem is that `--all-features` turns on `--features llvm-static`, which works on most OSes, but does not actually statically link on Fedora (and presumably Arch, too). I'm not...

Running ```sh strace -etrace=execve -f zig build ``` it appears `zig build` invokes `zig clang` as the `clang` driver, so you may be able to intercept those calls.

> `intercept-build` command requires Python, which is a major pain. `bear` is written in C++ now; you could try that. That's usually what I use. > An example 1-file commands.json...

> I'm not the right person to review this - I haven't worked on any of this code. I also still don't like this design, since it's unnecessarily reliant on...

> Why is this urgent; is this blocking someone? Generally, we want to avoid temporary solutions because there is a risk that they become permanent. How much time do you...

I'm going to implement that more robust solution; I just want to merge this first. Almost all of this code is necessary for the other solution, too, and it fixes...