You can look for yourself to see what command line Xcode used.
- Build your project in Xcode.
- Switch to log view. The icon for it looks like a speech bubble with a couple of lines in it.
- Click on the latest build.
- A list of build steps will show up in the main editing area. Right-click on "Compile main.cpp" and select "Copy Transcript for Shown Results".
- Paste this into your favorite text editor to see the exact command line that Xcode used to build your project.