plasma-umass / cwhy

"See why!" Explains and suggests fixes for compile-time errors for C, C++, C#, Go, Java, LaTeX, PHP, Python, Ruby, Rust, and TypeScript
Apache License 2.0
272 stars 6 forks source link

Add compiler wrapper behavior #11

Closed nicovank closed 1 year ago

nicovank commented 1 year ago

One atomic PR to add compiler wrapper behavior.

This mode is more robust because filenames can properly be resolved from the same working directory as the compiler.

Issues

How it works

A short script is generated in a temporary file. This allows options to be serialized along with the script and stay consistent across runs. I experimented with a couple other ways to do this but I think this is the best one.