When the -arch option is not explicitly specified, which architecture will GCC compile for? Can I rely on it being the machine’s native architecture?
When the -arch option is not explicitly specified, which architecture will GCC compile for?
Share
Yes, GCC will, by default, compile to the native architecture. At least this is the ‘default’ behavior.
So, if you’re using a default install (either as part of your distro or via its package manager) you can be pretty sure GCC will “do the right thing.”