DUB on Apple Silicon
Jan Allersma
jan at allersma.be
Tue Oct 31 09:03:12 UTC 2023
On Monday, 30 October 2023 at 22:06:11 UTC, Johan wrote:
> Can you tell us (use `file ...` to check):
> 1. Is `ldc2` an arm64 binary or an x86_64 binary?
> 2. is `dub` arm64?
I have tried using `--force` and the flag Guillaume Piolat
suggested. Unfortunately, both solutions did not solve the
problem. Johan's suggestion gave some insights:
```
$ file `which dub`
/usr/local/bin/dub: Mach-O 64-bit executable x86_64
$ file /usr/local/homebrew/Cellar/ldc/1.35.0/bin/ldc2
/usr/local/homebrew/Cellar/ldc/1.35.0/bin/ldc2: Mach-O 64-bit
executable arm64
$ file `which ld`
/usr/bin/ld: Mach-O universal binary with 2 architectures:
[x86_64:Mach-O 64-bit executable x86_64] [arm64e:Mach-O 64-bit
executable arm64e]
/usr/bin/ld (for architecture x86_64): Mach-O 64-bit executable
x86_64
/usr/bin/ld (for architecture arm64e): Mach-O 64-bit executable
arm64e
```
I will try to get a arm64 version of DUB. Once I have done that,
I will give an update.
More information about the digitalmars-d-ldc
mailing list