by debacle · 5y ago · 0 comments
Both strategies have advantages and disadvantages.
For GCC it is safe to link together any combination of objects A, B, and C. If they are all built with the same version then they are ABI compatible, the standard version (i.e. the -std option) doesn't make any difference.
Ignore the part of the link where it talks about gotchas with linking together binaries made by different compiler versions because in Rust this case isn't supported at all.