Open CohenArthur opened 3 years ago
I bootstrapped most of the front-end from the GCC GO code as you can see. I personally think we should try our best to strip this file down to be as basic as possible. We aren't taking advantage of anything there so it would be best when we do need to control linking flags etc that we are able to code review it properly.
Do any of @dkm or @tschwinge or @SimplyTheOther have any suggestions on how we go about cleaning this file up?
It is also relevant to point out that this is compiler driver and this will be important to figure out at a later date what compiler options we are missing down the line.
go
andlibgo
are mentionned quite a lot inrustspec.cc
, during argument parsing. I'd like to help in removing the unneeded references by giving them a more rust-related name or removing them if necesary. Here are a few snippets:Is this needed? There is currently no
librust
to link against. That tristate is used quite extensively in the rest of the file.Replacing the various references with
first_rust_file
and changing its behavior to refer to an*.rs
argument does not change the behavior of gccrs, and the tests still pass. But I'm assuming that it is unneeded and I guess it can be removed.Again, probably not in use right now.
Some of the references to go in this file have already been commented