Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

amd64 considered native architecture on i386 #2383

Open
peace-maker opened this issue Apr 5, 2024 · 0 comments
Open

amd64 considered native architecture on i386 #2383

peace-maker opened this issue Apr 5, 2024 · 0 comments

Comments

@peace-maker
Copy link
Member

It seems counter-intuitive for 64bit applications to be considered native to a 32bit host. Is this a bug?

@property
def native(self):
if context.os in ('android', 'baremetal', 'cgc'):
return False
arch = context.arch
with context.local(arch = platform.machine()):
platform_arch = context.arch
if arch in ('i386', 'amd64') and platform_arch in ('i386', 'amd64'):
return True
return arch == platform_arch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant