-
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
fixed_math: add recipe #24685
fixed_math: add recipe #24685
Conversation
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Hooks produced the following warnings for commit 60c18fbfixed_math/1.0.1@#505c334b5cfddabd57ba11cf9e4e9c3a
|
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.
Thanks! Some comments :)
recipes/fixed_math/all/conanfile.py
Outdated
def build(self): | ||
replace_in_file(self, os.path.join(self.source_folder, "fixed_lib", "include", "fixedmath", "fixed_math.hpp"), | ||
"template<typename arithmethic_type>\n constexpr fixed_t arithmetic_to_fixed( arithmethic_type value ) noexcept;", | ||
"template<typename arithmethic_type, typename>\n constexpr fixed_t arithmetic_to_fixed( arithmethic_type value ) noexcept;" |
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.
Any insight into this?
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.
@AbrilRBS
Thank you for your comment.
I add comment for this patch.
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.
This patch has been merged into upstream.
recipes/fixed_math/all/conanfile.py
Outdated
tc = CMakeToolchain(self) | ||
if is_msvc(self): | ||
tc.variables["CMAKE_CXX_FLAGS"] = "/Zc:__cplusplus" | ||
tc.variables["CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS"] = True |
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.
Is this supported by upstream? Our policy on CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS
is to not use it and disable shared support unless upstream specifically mentions it
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.
@AbrilRBS
I see.
I remove these lines and add validation logic for windows shared build.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
recipes/fixed_math/all/conanfile.py
Outdated
if self.settings.os == "Windows" and self.options.get_safe("shared"): | ||
raise ConanInvalidConfiguration(f"{self.ref} does not support shared builds on Windows") |
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.
As suggested by @uilianries in another PR, this can be replaced with
self.package_type = "static-library"
del self.options.shared
under config_options()
, which allows the package to be used with */*:shared=True
on Windows.
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.
@valgur
Thank a lot!
Now I see. Fixed.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
@AbrilRBS |
Sorry for that @toge, this is now running properly :) |
Conan v1 pipeline ✔️All green in build 23 (
Conan v2 pipeline ✔️
All green in build 23 (
|
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.
Thanks @toge :)
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.
Thanks ❤️
Summary
Changes to recipe: fixed_math/1.0.1
Motivation
fixed_math is a library for fix-point numeric math library.
Details
https://github.com/arturbac/fixed_math