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

[bug] Conan profile detect sets arch to x86_64 on native ARM64 Windows #14663

Closed
jcar87 opened this issue Sep 5, 2023 · 0 comments · Fixed by #14667
Closed

[bug] Conan profile detect sets arch to x86_64 on native ARM64 Windows #14663

jcar87 opened this issue Sep 5, 2023 · 0 comments · Fixed by #14667
Milestone

Comments

@jcar87
Copy link
Contributor

jcar87 commented Sep 5, 2023

Environment details

  • Operating System+version: Windows 11, arm64
  • Compiler+version: Visual Studio 2022, latest update
  • Conan version: 2.0.10
  • Python version:

Steps to reproduce

conan profile detect

Logs

Found msvc 17
Detected profile:
[settings]
arch=x86_64
build_type=Release
compiler=msvc
compiler.cppstd=14
compiler.runtime=dynamic
compiler.version=193
os=Windows

WARN: This profile is a guess of your environment, please check it.
WARN: The output of this command is not guaranteed to be stable and can change in future Conan versions.
WARN: Use your own profile files for stability.

With the native ARM64 toolchain installed - this should default to armv8

This is a small issue here:

elif "arm64" in machine:
return "armv8"
elif "64" in machine:

where platform.machine() returns ARM64 (upper case), which is not considered in the conditional, so it falls back to "contains 64" and maps to x86_64

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

Successfully merging a pull request may close this issue.

2 participants