@@ -495,26 +495,26 @@ <h2 id="native-compiler-toolchain-requirements">Native Compiler
495495< table >
496496< thead >
497497< tr class ="header ">
498- < th style =" text-align: left; " > Operating system</ th >
499- < th style =" text-align: left; " > Supported toolchain</ th >
498+ < th > Operating system</ th >
499+ < th > Supported toolchain</ th >
500500</ tr >
501501</ thead >
502502< tbody >
503503< tr class ="odd ">
504- < td style =" text-align: left; " > Linux</ td >
505- < td style =" text-align: left; " > gcc, clang</ td >
504+ < td > Linux</ td >
505+ < td > gcc, clang</ td >
506506</ tr >
507507< tr class ="even ">
508- < td style =" text-align: left; " > macOS</ td >
509- < td style =" text-align: left; " > Apple Xcode (using clang)</ td >
508+ < td > macOS</ td >
509+ < td > Apple Xcode (using clang)</ td >
510510</ tr >
511511< tr class ="odd ">
512- < td style =" text-align: left; " > AIX</ td >
513- < td style =" text-align: left; " > IBM XL C/C++</ td >
512+ < td > AIX</ td >
513+ < td > IBM XL C/C++</ td >
514514</ tr >
515515< tr class ="even ">
516- < td style =" text-align: left; " > Windows</ td >
517- < td style =" text-align: left; " > Microsoft Visual Studio</ td >
516+ < td > Windows</ td >
517+ < td > Microsoft Visual Studio</ td >
518518</ tr >
519519</ tbody >
520520</ table >
@@ -527,23 +527,22 @@ <h2 id="native-compiler-toolchain-requirements">Native Compiler
527527< table >
528528< thead >
529529< tr class ="header ">
530- < th style =" text-align: left; " > Operating system</ th >
531- < th style =" text-align: left; " > Toolchain version</ th >
530+ < th > Operating system</ th >
531+ < th > Toolchain version</ th >
532532</ tr >
533533</ thead >
534534< tbody >
535535< tr class ="odd ">
536- < td style =" text-align: left; " > Linux</ td >
537- < td style =" text-align: left; " > gcc 11.2.0</ td >
536+ < td > Linux</ td >
537+ < td > gcc 11.2.0</ td >
538538</ tr >
539539< tr class ="even ">
540- < td style =" text-align: left; " > macOS</ td >
541- < td style =" text-align: left; " > Apple Xcode 10.1 (using clang 10.0.0)</ td >
540+ < td > macOS</ td >
541+ < td > Apple Xcode 10.1 (using clang 10.0.0)</ td >
542542</ tr >
543543< tr class ="odd ">
544- < td style ="text-align: left; "> Windows</ td >
545- < td style ="text-align: left; "> Microsoft Visual Studio 2022 update
546- 17.1.0</ td >
544+ < td > Windows</ td >
545+ < td > Microsoft Visual Studio 2022 update 17.1.0</ td >
547546</ tr >
548547</ tbody >
549548</ table >
@@ -565,19 +564,25 @@ <h3 id="clang">clang</h3>
565564< code > --with-toolchain-type=clang</ code > .</ p >
566565< h3 id ="apple-xcode "> Apple Xcode</ h3 >
567566< p > The oldest supported version of Xcode is 8.</ p >
568- < p > You will need the Xcode command lines developers tools to be able to
569- build the JDK. (Actually, < em > only</ em > the command lines tools are
567+ < p > You will need the Xcode command line developer tools to be able to
568+ build the JDK. (Actually, < em > only</ em > the command line tools are
570569needed, not the IDE.) The simplest way to install these is to run:</ p >
571570< pre > < code > xcode-select --install</ code > </ pre >
572- < p > It is advisable to keep an older version of Xcode for building the
573- JDK when updating Xcode. This < a
574- href ="http://iosdevelopertips.com/xcode/install-multiple-versions-of-xcode.html "> blog
575- page</ a > has good suggestions on managing multiple Xcode versions. To
576- use a specific version of Xcode, use < code > xcode-select -s</ code > before
577- running < code > configure</ code > , or use
578- < code > --with-toolchain-path</ code > to point to the version of Xcode to
579- use, e.g.
580- < code > configure --with-toolchain-path=/Applications/Xcode8.app/Contents/Developer/usr/bin</ code > </ p >
571+ < p > When updating Xcode, it is advisable to keep an older version for
572+ building the JDK. To use a specific version of Xcode you have multiple
573+ options:</ p >
574+ < ul >
575+ < li > Use < code > xcode-select -s</ code > before running
576+ < code > configure</ code > , e.g.
577+ < code > xcode-select -s /Applications/Xcode13.1.app</ code > . The drawback
578+ is that the setting is system wide and you may have to revert it after
579+ an OpenJDK build.</ li >
580+ < li > Use configure option < code > --with-xcode-path</ code > , e.g.
581+ < code > configure --with-xcode-path=/Applications/Xcode13.1.app</ code >
582+ This allows using a specific Xcode version for an OpenJDK build,
583+ independently of the active Xcode version by
584+ < code > xcode-select</ code > .</ li >
585+ </ ul >
581586< p > If you have recently (inadvertently) updated your OS and/or Xcode
582587version, and the JDK can no longer be built, please see the section on
583588< a href ="#problems-with-the-build-environment "> Problems with the Build
0 commit comments