apple-compiler-selection.rst 750 B

12345678910111213
  1. apple-compiler-selection
  2. ------------------------
  3. * On macOS with :ref:`Ninja Generators` and :ref:`Makefile Generators`, when
  4. a compiler is found in ``/usr/bin``, it is now used as-is and is no longer
  5. mapped to the corresponding compiler inside Xcode. The mapping was
  6. introduced by CMake 3.2 to allow build trees to continue to work with their
  7. original compiler even when ``xcode-select`` switches to a different
  8. Xcode installation. However, the compilers inside Xcode cannot be used
  9. without explicit ``-isysroot`` flags and are therefore not suitable for
  10. passing to arbitrary third-party build systems. Furthermore, the mapping
  11. behavior can override user-specified compiler paths. Therefore, this
  12. behavior has been reverted.