This code seems to force x86_64 whenever it is not arm64, which is obviously wrong for powerpc.
|
if sysctlOut in ["0", "1"]: |
|
targetArch = "arm64" |
|
else: |
|
targetArch = "amd64" |
|
else: |
|
echo "Override: arch = " & arch |
|
|
|
if targetArch == "arm64": |
|
if not quiet: |
|
echo "Building for arm64" |
|
setTargetStr("arm64-apple-macos13") |
|
elif targetArch == "amd64": |
|
setTargetStr("x86_64-apple-macos13") |
|
if not quiet: |
|
echo "Building for amd64" |
|
else: |
|
if not quiet: |
|
echo "Invalid target architecture for MacOs: " & arch |
|
quit(1) |
P. S. I am aware the right now Nim does not have powerpc for macOS, but it does have powerpc64.
This code seems to force x86_64 whenever it is not arm64, which is obviously wrong for powerpc.
nimutils/nimutils/nimscript.nim
Lines 30 to 48 in 8fcacea
P. S. I am aware the right now Nim does not have
powerpcfor macOS, but it does havepowerpc64.