-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
xz-utils: support armv8 and clang-cl on Windows #25014
Conversation
@@ -124,16 +131,23 @@ def _build_msvc(self): | |||
"<Import Project=\"$(VCTargetsPath)\\Microsoft.Cpp.targets\" />", | |||
f"<Import Project=\"{conantoolchain_props}\" /><Import Project=\"$(VCTargetsPath)\\Microsoft.Cpp.targets\" />", | |||
) | |||
|
|||
if self.settings.arch == "armv8": | |||
replace_in_file(self, vcxproj_file, "x64", "ARM64") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
😎
ARM64 build:
|
clang-cl build (note that it requires Conan with conan-io/conan#16844 - otherwise it may silently use msvc instead)
|
And this for the oldest supported version:
|
This comment has been minimized.
This comment has been minimized.
Conan v1 pipeline ✔️All green in build 2 (
Conan v2 pipeline ✔️
All green in build 2 (
|
assume_clang_cl = (self.settings.os == "Windows" | ||
and self.settings.compiler == "clang" | ||
and self.settings.get_safe("compiler.runtime") is not None) | ||
return is_msvc(self) or assume_clang_cl |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can't it be simplified with just self.settings.get_safe("compiler.runtime") is not None
?
In this recipe, there is also a logic based on I use this kind of trick now: conan-center-index/recipes/fltk/all/conanfile.py Lines 41 to 47 in 7266d08
conan-center-index/recipes/iphreeqc/all/conanfile.py Lines 33 to 39 in 151cf0e
conan-center-index/recipes/opencv/4.x/conanfile.py Lines 223 to 229 in 7266d08
|
* xz-utils: support armv8 and clang-cl on Windows * xz-utils: guard replacement with conditional
Summary
Was not previously working.