Skip to content

nimscript apparently is designed to misdetect arch on macOS when it is powerpc #94

Description

@barracuda156

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions