Stop trolling. The compiler does no such thing. The build system & package manager does by default, just like `cmake` does. Of course you can prevent this by vendoring your dependencies, just like you can with other languages.
That’s something that is easily changed. You can download and individually inspect all the source code for yourself as well and proxy it locally. Not a fun task, but one that can be done with some grit and some time.