Skip to content

Commit

Permalink
Fix Mill support for non-M1 Macs (#2165)
Browse files Browse the repository at this point in the history
* Fix Mill support for non-M1 Macs

* Update build.sc

Co-authored-by: edwardcwang <[email protected]>

Co-authored-by: edwardcwang <[email protected]>
  • Loading branch information
jackkoenig and edwardcwang authored Mar 30, 2021
1 parent 78ece78 commit ffe83fa
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions build.sc
Original file line number Diff line number Diff line change
Expand Up @@ -135,11 +135,12 @@ class firrtlCrossModule(val crossScalaVersion: String) extends CrossSbtModule wi
val ppcle_64 = architecture().equals("ppc64le")
val s390x = architecture().equals("s390x")
val x86_32 = architecture().matches("^(x8632|x86|i[3-6]86|ia32|x32)$")
val x86_64 = architecture().matches("^(x8664|amd64|ia32e|em64t|x64)$")
val x86_64 = architecture().matches("^(x8664|amd64|ia32e|em64t|x64|x86_64)$")

val protocBinary =
if (isMac)
if (aarch_64) "osx-x86_64"
// MacOS ARM 64-bit still supports x86_64 binaries via Rosetta 2
if (aarch_64 || x86_64) "osx-x86_64"
else throw new Exception("mill cannot detect your architecture of your Mac")
else if (isLinux)
if (aarch_64) "linux-aarch_64"
Expand Down

0 comments on commit ffe83fa

Please sign in to comment.