Intel® C++ Compiler 16.0 User and Reference Guide

Selecting the Intel® Compiler

The following topic applies to Xcode*.

To select the Intel® C++ Compiler:

  1. Select the target you want to change and click Build Rules.

  2. Add a new rule by clicking Editor > Add Build Rule or pressing a + button.

  3. Under Process, choose C source files or C++ source files , depending on the source files.

  4. Under Using, select one of the options for ICC Intel® C++Compiler:

    • Major_Version, such as 17.0: The most recently installed compiler, even if it is not the latest release.

    • Latest Release: The latest released compiler available on your system. This is useful when you have multiple installations of the Intel compiler and want to use whichever version was most recently released by Intel.

    • Major_Version.n.nnn: A specific package, such as 17.0.0.029. This is useful when you have multiple packages of one major version installed.

    Note

    If the Intel® compiler does not show up in the drop-down list, it may mean that the Intel® compiler does not support the version of Xcode* that you are using.

    To enable the Intel® compiler in Xcode*:

    1. Reinstall the compiler. When the installer prompts you to specify a path to Xcode*, specify a path to a supported version of Xcode*.

    2. After the install has finished, open a terminal window and change directory to the installation directory for the Intel® compiler IDE integration:

      cd /Library/Application\ Support/Developer/ 
                
    3. Create a symbolic link for a new, unsupported version of Xcode*:

      sudo ln -s supported_xcode_version unsupported_xcode_version

      For example:

      sudo ln -s 7.1 7.2
    4. Restart Xcode*.

Note

If you select a tool that does not support the source file type, that source file type will be processed by a later rule that specifies that type. For example, even though Objective-C/C++ sources are derived from C sources, they will actually be built by the Intel® C++ Compilers.

See Also