Thread overview
running a d compiler on the Mac Mini with an M1 chip
Mar 26, 2021
dan
Mar 26, 2021
rikki cattermole
Mar 26, 2021
dan
Mar 29, 2021
Guillaume Piolat
March 26, 2021
Are there any d compilers that run natively on the Mac Mini with an M1 chip?

If so, does anybody here have any experience with them that can be shared?

If not, and your machine is a mac mini, how would you go about programming in d on it?

TIA for any info!
March 27, 2021
On 27/03/2021 10:51 AM, dan wrote:
> Are there any d compilers that run natively on the Mac Mini with an M1 chip?
> 
> If so, does anybody here have any experience with them that can be shared?
> 
> If not, and your machine is a mac mini, how would you go about programming in d on it?
> 
> TIA for any info!

Looks like latest ldc has an arm build. But both dmd and ldc should already work due to x86 emulation that takes place.

https://github.com/ldc-developers/ldc/releases/tag/v1.25.1
March 26, 2021
On Friday, 26 March 2021 at 21:54:20 UTC, rikki cattermole wrote:
> On 27/03/2021 10:51 AM, dan wrote:
>> Are there any d compilers that run natively on the Mac Mini with an M1 chip?
>> 
>> If so, does anybody here have any experience with them that can be shared?
>> 
>> If not, and your machine is a mac mini, how would you go about programming in d on it?
>> 
>> TIA for any info!
>
> Looks like latest ldc has an arm build. But both dmd and ldc should already work due to x86 emulation that takes place.
>
> https://github.com/ldc-developers/ldc/releases/tag/v1.25.1

Thanks Rikki!

If anybody has any particular experience using d on a mac mini with M1 that they want to share, please do post, but this does look promising.

dan
March 29, 2021
On Friday, 26 March 2021 at 22:41:08 UTC, dan wrote:
> On Friday, 26 March 2021 at 21:54:20 UTC, rikki cattermole wrote:
>> On 27/03/2021 10:51 AM, dan wrote:
>>> Are there any d compilers that run natively on the Mac Mini with an M1 chip?
>>> 
>>> If so, does anybody here have any experience with them that can be shared?
>>> 
>>> If not, and your machine is a mac mini, how would you go about programming in d on it?
>>> 
>>> TIA for any info!
>>
>> Looks like latest ldc has an arm build. But both dmd and ldc should already work due to x86 emulation that takes place.
>>
>> https://github.com/ldc-developers/ldc/releases/tag/v1.25.1
>
> Thanks Rikki!
>
> If anybody has any particular experience using d on a mac mini with M1 that they want to share, please do post, but this does look promising.
>
> dan

(Not M1 but the DTK)

Hello,

Here are the instructions for setup and building both for arm64 and x86_64:
https://forum.dlang.org/post/rtf2j3$2oh1$1@digitalmars.com

In addition to these instructions, you can also use the native LDC for faster build.