# How can I detect Apple M1 chip?

**URL:** <https://discourse.julialang.org/t/how-can-i-detect-apple-m1-chip/79870>\
**Category:** General Usage\
**Created:** [April 23, 2022, 2:29am UTC](https://discourse.julialang.org/t/how-can-i-detect-apple-m1-chip/79870 "2022-04-23T02:29:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![chkwon](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/chkwon/32/3632_2.png) [@chkwon](https://discourse.julialang.org/u/chkwon)\
**Post date:** [April 23, 2022, 2:29am UTC](https://discourse.julialang.org/t/how-can-i-detect-apple-m1-chip/79870/1 "2022-04-23T02:29:53Z")

</div>

I need to provide different build scripts for Apple Intel and Apple M1. How can I detect M1? Can `Sys.isapple()` or any other method distinguish them?

---

<div class="post-metadata">

**Author:** ![stevengj](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stevengj/32/71_2.png) [@stevengj](https://discourse.julialang.org/u/stevengj)\
**Post date:** [April 23, 2022, 2:55am UTC](https://discourse.julialang.org/t/how-can-i-detect-apple-m1-chip/79870/2 "2022-04-23T02:55:04Z")

</div>

`Sys.isapple() && Sys.ARCH === :aarch64`

---

<div class="post-metadata">

**Author:** ![chkwon](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/chkwon/32/3632_2.png) [@chkwon](https://discourse.julialang.org/u/chkwon)\
**Post date:** [April 23, 2022, 2:59am UTC](https://discourse.julialang.org/t/how-can-i-detect-apple-m1-chip/79870/3 "2022-04-23T02:59:21Z")

</div>

Great! Thanks!!
