Re:The Rust compiler is still getting faster
by gpderetta on Thursday July 25, 2019 @06:54AM
(#20524288)
> - CMake
> - Easy
Pick one. I'm sure there is though.
It wouldn't be hard with make but then again I'm much more familiar with it than cmake.
Re:The Rust compiler is still getting faster
by fluffything on Thursday July 25, 2019 @07:02AM
(#20524323)
So I manage to get it to work in the command line using `CXXFLAGS="$CXXFLAGS -fsyntax-check" cmake ... && make` !
Re:The Rust compiler is still getting faster
by gpderetta on Thursday July 25, 2019 @07:53AM
(#20524600)
One issue with that is that is, unless there is magic handling of the flag in cmake, it might still attempt (and fail) to run the linking stages. You might need custom targets jut for this.
Re:The Rust compiler is still getting faster
by humanrebar on Thursday July 25, 2019 @07:38AM
(#20524487)
Dump a compilation database with -CMAKE_EXPORT_COMPILE_COMMANDS=1 and wire up a script to call those commands but with the syntax only flag.
I never invoke clang or gcc directly. When using cargo, I use `cargo check` instead of `cargo build`. But in C or C++ depending on the project `make check` might not exist, or it might build all tests and run them, or do something else entirely like checking the formatting using clang-format.