[R-SIG-Mac] Which version of clang does CRAN's R build use?
Simon Urbanek
@|mon@urb@nek @end|ng |rom R-project@org
Mon Sep 1 01:58:28 CEST 2025
Duncan,
> On 1/09/2025, at 08:25, Duncan Murdoch <murdoch.duncan using gmail.com> wrote:
>
> On 2025-08-31 4:11 p.m., Duncan Murdoch wrote:
>> The instructions on https://mac.r-project.org/tools/ say to install
>> tools using `sudo xcode-select --install`. Currently for me that installed
>> Apple clang version 17.0.0 (clang-1700.0.13.5)
>> Is that the version of clang that is being used in the CRAN builds? If
>> not, is there an advantage to matching what was used?
>
> Just found on the download page for R 4.5.1 "This release uses Xcode 16.2(arm64)/14.2(x86_64) and GNU Fortran 14.2." So that answers my first question, but leaves the second one. Is it worth installing that version?
>
It depends - if you want stability then, yes, since there were major breaking changes in Xcode 16.3 (Apple clang 1700). Xcode 16.2 was the best "stable" release before that. Similarly, if you want produce binaries for others then you want it for the same reason. However, if you want to test the cutting edge and test support for new standards then using the latest is ok. The fallout isn’t huge, it depends on what you will try to build.
Cheers,
Simon
More information about the R-SIG-Mac
mailing list