diff --git a/docs/Hardware.html b/docs/Hardware.html index c61ce79e9..7b03365d7 100644 --- a/docs/Hardware.html +++ b/docs/Hardware.html @@ -212,7 +212,6 @@

 
 
-180
 181
 182
 183
@@ -223,10 +222,11 @@ 

188 189 190 -191

+191 +192 -
# File 'hardware.rb', line 180
+      
# File 'hardware.rb', line 181
 
 def cores_as_words
   case Hardware::CPU.cores
@@ -318,7 +318,9 @@ 

19 20 21 -22

+22 +23 +24
# File 'extend/os/mac/hardware.rb', line 6
@@ -331,10 +333,12 @@ 

end if CPU.arch == :arm64 :arm_vortex_tempest - # This cannot use a newer CPU e.g. ivybridge because Rosetta 2 does not + # This cannot use a newer CPU e.g. haswell because Rosetta 2 does not # support AVX instructions in bottles: # https://github.com/Homebrew/homebrew-core/issues/67713 - elsif version >= :mojave + elsif version >= :ventura + :westmere + elsif version >= :mojave :nehalem else generic_oldest_cpu @@ -384,7 +388,6 @@

 
 
-221
 222
 223
 224
@@ -397,10 +400,11 @@ 

231 232 233 -234

+234 +235

-
# File 'hardware.rb', line 221
+      
# File 'hardware.rb', line 222
 
 def rustflags_target_cpu
   # Rust already defaults to the oldest supported cpu for each target-triplet
@@ -409,7 +413,7 @@ 

@target_cpu ||= case (cpu = oldest_cpu) when :core :prescott - when :native, :ivybridge, :sandybridge, :nehalem, :core2 + when :native, :ivybridge, :sandybridge, :westmere, :nehalem, :core2 cpu end return if @target_cpu.blank? diff --git a/docs/Hardware/CPU.html b/docs/Hardware/CPU.html index 8977243da..4c7ca9dac 100644 --- a/docs/Hardware/CPU.html +++ b/docs/Hardware/CPU.html @@ -1165,7 +1165,6 @@

 
 
-72
 73
 74
 75
@@ -1174,10 +1173,11 @@ 

78 79 80 -81

+81 +82

-
# File 'hardware.rb', line 72
+      
# File 'hardware.rb', line 73
 
 def arch
   case bits
@@ -1232,7 +1232,6 @@ 

 
 
-45
 46
 47
 48
@@ -1242,10 +1241,11 @@ 

52 53 54 -55

+55 +56

-
# File 'hardware.rb', line 45
+      
# File 'hardware.rb', line 46
 
 def arch_32_bit
   if arm?
@@ -1301,7 +1301,6 @@ 

 
 
-58
 59
 60
 61
@@ -1313,10 +1312,11 @@ 

67 68 69 -70

+70 +71

-
# File 'hardware.rb', line 58
+      
# File 'hardware.rb', line 59
 
 def arch_64_bit
   if arm?
@@ -1351,14 +1351,14 @@ 

 
 
-166
 167
 168
 169
-170
+170 +171

-
# File 'hardware.rb', line 166
+      
# File 'hardware.rb', line 167
 
 def arch_flag(arch)
   return "-mcpu=#{arch}" if ppc?
@@ -1408,12 +1408,12 @@ 

 
 
-146
 147
-148
+148 +149

-
# File 'hardware.rb', line 146
+      
# File 'hardware.rb', line 147
 
 def arm?
   type == :arm
@@ -1567,12 +1567,12 @@ 

 
 
-154
 155
-156
+156 +157

-
# File 'hardware.rb', line 154
+      
# File 'hardware.rb', line 155
 
 def big_endian?
   [1].pack("I") == [1].pack("N")
@@ -1597,15 +1597,15 @@ 

 
 
-106
 107
 108
 109
 110
-111
+111 +112

-
# File 'hardware.rb', line 106
+      
# File 'hardware.rb', line 107
 
 def bits
   @bits ||= case RUBY_PLATFORM
@@ -1633,16 +1633,16 @@ 

 
 
-98
 99
 100
 101
 102
 103
-104
+104 +105

-
# File 'hardware.rb', line 98
+      
# File 'hardware.rb', line 99
 
 def cores
   return @cores if @cores
@@ -1789,12 +1789,12 @@ 

 
 
-162
 163
-164
+164 +165

-
# File 'hardware.rb', line 162
+      
# File 'hardware.rb', line 163
 
 def feature?(name)
   features.include?(name)
@@ -1989,12 +1989,12 @@ 

 
 
-126
 127
-128
+128 +129

-
# File 'hardware.rb', line 126
+      
# File 'hardware.rb', line 127
 
 def intel?
   type == :intel
@@ -2130,12 +2130,12 @@ 

 
 
-118
 119
-120
+120 +121

-
# File 'hardware.rb', line 118
+      
# File 'hardware.rb', line 119
 
 def is_32_bit?
   bits == 32
@@ -2183,12 +2183,12 @@ 

 
 
-122
 123
-124
+124 +125

-
# File 'hardware.rb', line 122
+      
# File 'hardware.rb', line 123
 
 def is_64_bit?
   bits == 64
@@ -2236,12 +2236,12 @@ 

 
 
-150
 151
-152
+152 +153

-
# File 'hardware.rb', line 150
+      
# File 'hardware.rb', line 151
 
 def little_endian?
   !big_endian?
@@ -2385,12 +2385,12 @@ 

 
 
-134
 135
-136
+136 +137

-
# File 'hardware.rb', line 134
+      
# File 'hardware.rb', line 135
 
 def ppc32?
   ppc? && is_32_bit?
@@ -2438,12 +2438,12 @@ 

 
 
-142
 143
-144
+144 +145

-
# File 'hardware.rb', line 142
+      
# File 'hardware.rb', line 143
 
 def ppc64?
   ppc? && is_64_bit? && big_endian?
@@ -2491,12 +2491,12 @@ 

 
 
-138
 139
-140
+140 +141

-
# File 'hardware.rb', line 138
+      
# File 'hardware.rb', line 139
 
 def ppc64le?
   ppc? && is_64_bit? && little_endian?
@@ -2544,12 +2544,12 @@ 

 
 
-130
 131
-132
+132 +133

-
# File 'hardware.rb', line 130
+      
# File 'hardware.rb', line 131
 
 def ppc?
   type == :ppc
diff --git a/docs/OS/Mac/CLT.html b/docs/OS/Mac/CLT.html
index becdf2a51..f3f6f26de 100644
--- a/docs/OS/Mac/CLT.html
+++ b/docs/OS/Mac/CLT.html
@@ -590,14 +590,14 @@ 

 
 
+381
+382
 383
 384
-385
-386
-387
+385

-
# File 'os/mac/xcode.rb', line 383
+      
# File 'os/mac/xcode.rb', line 381
 
 def self.below_minimum_version?
   return false unless installed?
@@ -652,13 +652,13 @@ 

 
 
+396
+397
 398
-399
-400
-401
+399

-
# File 'os/mac/xcode.rb', line 398
+      
# File 'os/mac/xcode.rb', line 396
 
 def self.detect_clang_version
   version_output = Utils.popen_read("#{PKG_PATH}/usr/bin/clang", "--version")
@@ -712,6 +712,8 @@ 

 
 
+420
+421
 422
 423
 424
@@ -720,12 +722,10 @@ 

427 428 429 -430 -431 -432

+430

-
# File 'os/mac/xcode.rb', line 422
+      
# File 'os/mac/xcode.rb', line 420
 
 def self.detect_version
   version = T.let(nil, T.nilable(String))
@@ -786,12 +786,12 @@ 

 
 
-404
-405
-406
+402 +403 +404

-
# File 'os/mac/xcode.rb', line 404
+      
# File 'os/mac/xcode.rb', line 402
 
 def self.detect_version_from_clang_version
   detect_clang_version&.sub(/^(\d+)0(\d)\./, "\\1.\\2.")
@@ -844,6 +844,7 @@ 

 
 
+308
 309
 310
 311
@@ -856,11 +857,10 @@ 

318 319 320 -321 -322

+321

-
# File 'os/mac/xcode.rb', line 309
+      
# File 'os/mac/xcode.rb', line 308
 
 def self.installation_instructions
   if MacOS.version == "10.14"
@@ -980,6 +980,7 @@ 

 
 
+349
 350
 351
 352
@@ -990,17 +991,14 @@ 

357 358 359 -360 -361 -362

+360

-
# File 'os/mac/xcode.rb', line 350
+      
# File 'os/mac/xcode.rb', line 349
 
 def self.latest_clang_version
   case MacOS.version
-  when "14"    then "1500.0.28.1.1"
-  when "13"    then "1403.0.22.14.1"
+  when "14", "13" then "1500.1.0.2.5"
   when "12"    then "1400.0.29.202"
   when "11"    then "1300.0.29.30"
   when "10.15" then "1200.0.32.29"
@@ -1060,6 +1058,8 @@ 

 
 
+366
+367
 368
 369
 370
@@ -1070,12 +1070,10 @@ 

375 376 377 -378 -379 -380

+378

-
# File 'os/mac/xcode.rb', line 368
+      
# File 'os/mac/xcode.rb', line 366
 
 def self.minimum_version
   case MacOS.version
@@ -1138,15 +1136,15 @@ 

 
 
+388
+389
 390
 391
 392
-393
-394
-395
+393

-
# File 'os/mac/xcode.rb', line 390
+      
# File 'os/mac/xcode.rb', line 388
 
 def self.outdated?
   clang_version = detect_clang_version
@@ -1202,12 +1200,12 @@ 

 
 
+288
 289
-290
-291
+290

-
# File 'os/mac/xcode.rb', line 289
+      
# File 'os/mac/xcode.rb', line 288
 
 def self.provides_sdk?
   version >= "8"
@@ -1277,12 +1275,12 @@ 

 
 
+298
 299
-300
-301
+300

-
# File 'os/mac/xcode.rb', line 299
+      
# File 'os/mac/xcode.rb', line 298
 
 def self.sdk(version = nil)
   sdk_locator.sdk_if_applicable(version)
@@ -1335,12 +1333,12 @@ 

 
 
+293
 294
-295
-296
+295

-
# File 'os/mac/xcode.rb', line 294
+      
# File 'os/mac/xcode.rb', line 293
 
 def self.sdk_locator
   @sdk_locator ||= CLTSDKLocator.new
@@ -1410,12 +1408,12 @@ 

 
 
+303
 304
-305
-306
+305

-
# File 'os/mac/xcode.rb', line 304
+      
# File 'os/mac/xcode.rb', line 303
 
 def self.sdk_path(version = nil)
   sdk(version)&.path
@@ -1468,12 +1466,12 @@ 

 
 
+283
 284
-285
-286
+285

-
# File 'os/mac/xcode.rb', line 284
+      
# File 'os/mac/xcode.rb', line 283
 
 def self.separate_header_package?
   version >= "10" && MacOS.version >= "10.14"
@@ -1526,6 +1524,7 @@ 

 
 
+324
 325
 326
 327
@@ -1545,11 +1544,10 @@ 

341 342 343 -344 -345

+344

-
# File 'os/mac/xcode.rb', line 325
+      
# File 'os/mac/xcode.rb', line 324
 
 def self.update_instructions
   software_update_location = if MacOS.version >= "13"
diff --git a/docs/OS/Mac/Xcode.html b/docs/OS/Mac/Xcode.html
index 66ab19aa5..b4c53a063 100644
--- a/docs/OS/Mac/Xcode.html
+++ b/docs/OS/Mac/Xcode.html
@@ -698,14 +698,14 @@ 

 
 
+58
 59
 60
 61
-62
-63
+62

-
# File 'os/mac/xcode.rb', line 59
+      
# File 'os/mac/xcode.rb', line 58
 
 def self.below_minimum_version?
   return false unless installed?
@@ -760,6 +760,7 @@ 

 
 
+116
 117
 118
 119
@@ -767,11 +768,10 @@ 

121 122 123 -124 -125

+124

-
# File 'os/mac/xcode.rb', line 117
+      
# File 'os/mac/xcode.rb', line 116
 
 def self.bundle_path
   # Use the default location if it exists.
@@ -830,12 +830,12 @@ 

 
 
+261
 262
-263
-264
+263

-
# File 'os/mac/xcode.rb', line 262
+      
# File 'os/mac/xcode.rb', line 261
 
 def self.default_prefix?
   prefix.to_s == "/Applications/Xcode.app/Contents/Developer"
@@ -888,6 +888,7 @@ 

 
 
+189
 190
 191
 192
@@ -922,11 +923,10 @@ 

221 222 223 -224 -225

+224

-
# File 'os/mac/xcode.rb', line 190
+      
# File 'os/mac/xcode.rb', line 189
 
 def self.detect_version
   # This is a separate function as you can't cache the value out of a block
@@ -1012,6 +1012,7 @@ 

 
 
+227
 228
 229
 230
@@ -1042,11 +1043,10 @@ 

255 256 257 -258 -259

+258

-
# File 'os/mac/xcode.rb', line 228
+      
# File 'os/mac/xcode.rb', line 227
 
 def self.detect_version_from_clang_version
   version = DevelopmentTools.clang_version
@@ -1076,7 +1076,7 @@ 

when "13.0.0" then "13.2.1" when "13.1.6" then "13.4.1" when "14.0.0" then "14.2" - when "15.0.0" then "15.0" + when "15.0.0" then "15.1" else "14.3" end end

@@ -1128,6 +1128,7 @@

 
 
+148
 149
 150
 151
@@ -1138,11 +1139,10 @@ 

156 157 158 -159 -160

+159

-
# File 'os/mac/xcode.rb', line 149
+      
# File 'os/mac/xcode.rb', line 148
 
 def self.installation_instructions
   if OS::Mac.version.prerelease?
@@ -1264,12 +1264,12 @@ 

 
 
+65
 66
-67
-68
+67

-
# File 'os/mac/xcode.rb', line 66
+      
# File 'os/mac/xcode.rb', line 65
 
 def self.latest_sdk_version?
   OS::Mac.full_version >= OS::Mac.latest_sdk_version
@@ -1358,17 +1358,15 @@ 

33 34 35 -36 -37

+36
# File 'os/mac/xcode.rb', line 19
 
 def self.latest_version(macos: MacOS.version)
-  latest_stable = "14.3"
+  latest_stable = "15.1"
   case macos
-  when "14" then "15.0"
-  when "13" then latest_stable
+  when "14", "13" then latest_stable
   when "12" then "14.2"
   when "11" then "13.2.1"
   when "10.15" then "12.4"
@@ -1434,6 +1432,7 @@ 

 
 
+43
 44
 45
 46
@@ -1445,11 +1444,10 @@ 

52 53 54 -55 -56

+55

-
# File 'os/mac/xcode.rb', line 44
+      
# File 'os/mac/xcode.rb', line 43
 
 def self.minimum_version
   case MacOS.version
@@ -1512,6 +1510,7 @@ 

 
 
+70
 71
 72
 73
@@ -1520,11 +1519,10 @@ 

76 77 78 -79 -80

+79

-
# File 'os/mac/xcode.rb', line 71
+      
# File 'os/mac/xcode.rb', line 70
 
 def self.needs_clt_installed?
   return false if latest_sdk_version?
@@ -1584,14 +1582,14 @@ 

 
 
+82
 83
 84
 85
-86
-87
+86

-
# File 'os/mac/xcode.rb', line 83
+      
# File 'os/mac/xcode.rb', line 82
 
 def self.outdated?
   return false unless installed?
@@ -1647,6 +1645,7 @@ 

 
 
+96
 97
 98
 99
@@ -1658,11 +1657,10 @@ 

105 106 107 -108 -109

+108

-
# File 'os/mac/xcode.rb', line 97
+      
# File 'os/mac/xcode.rb', line 96
 
 def self.prefix
   @prefix ||= begin
@@ -1742,12 +1740,12 @@ 

 
 
+138
 139
-140
-141
+140

-
# File 'os/mac/xcode.rb', line 139
+      
# File 'os/mac/xcode.rb', line 138
 
 def self.sdk(version = nil)
   sdk_locator.sdk_if_applicable(version)
@@ -1800,12 +1798,12 @@ 

 
 
+133
 134
-135
-136
+135

-
# File 'os/mac/xcode.rb', line 134
+      
# File 'os/mac/xcode.rb', line 133
 
 def self.sdk_locator
   @sdk_locator ||= XcodeSDKLocator.new
@@ -1875,12 +1873,12 @@ 

 
 
+143
 144
-145
-146
+145

-
# File 'os/mac/xcode.rb', line 144
+      
# File 'os/mac/xcode.rb', line 143
 
 def self.sdk_path(version = nil)
   sdk(version)&.path
@@ -1933,12 +1931,12 @@ 

 
 
+111
 112
-113
-114
+113

-
# File 'os/mac/xcode.rb', line 112
+      
# File 'os/mac/xcode.rb', line 111
 
 def self.toolchain_path
   Pathname("#{prefix}/Toolchains/XcodeDefault.xctoolchain")
@@ -1991,6 +1989,7 @@ 

 
 
+162
 163
 164
 165
@@ -2001,11 +2000,10 @@ 

170 171 172 -173 -174

+173

-
# File 'os/mac/xcode.rb', line 163
+      
# File 'os/mac/xcode.rb', line 162
 
 def self.update_instructions
   if OS::Mac.version.prerelease?
@@ -2127,12 +2125,12 @@ 

 
 
+89
 90
-91
-92
+91

-
# File 'os/mac/xcode.rb', line 90
+      
# File 'os/mac/xcode.rb', line 89
 
 def self.without_clt?
   !MacOS::CLT.installed?