dongjoon-hyun commented on a change in pull request #34648:
URL: https://github.com/apache/spark/pull/34648#discussion_r752857194



##########
File path: core/src/main/scala/org/apache/spark/util/Utils.scala
##########
@@ -1961,6 +1961,11 @@ private[spark] object Utils extends Logging {
    */
   val isMac = SystemUtils.IS_OS_MAC_OSX
 
+  /**
+   * Whether the underlying operating system is Mac OS X and processor is 
Apple Silicon.
+   */
+  val isAppleSilicon = SystemUtils.IS_OS_MAC_OSX && 
SystemUtils.OS_ARCH.equals("aarch64")

Review comment:
       Actually, I thought this at the beginning, but dropped the idea because 
`AppleSilicon` can run `Linux`.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to