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

- [mpir] enable M1 builds #8811

Merged
merged 2 commits into from
Feb 2, 2022
Merged

- [mpir] enable M1 builds #8811

merged 2 commits into from
Feb 2, 2022

Conversation

SSE4
Copy link
Contributor

@SSE4 SSE4 commented Jan 11, 2022

closes: #8772

Specify library name and version: mpir/all

This is also a good place to share with all of us why you are submitting this PR (specially if it is a new addition to ConanCenter): is it a dependency of other libraries you want to package? Are you the author of the library? Thanks!


  • I've read the guidelines for contributing.
  • I've followed the PEP8 style guides for Python code in the recipes.
  • I've used the latest Conan client version.
  • I've tried at least one configuration locally with the
    conan-center hook activated.

Signed-off-by: SSE4 <tomskside@gmail.com>
@conan-center-bot

This comment has been minimized.

recipes/mpir/all/conanfile.py Outdated Show resolved Hide resolved
@jgsogo
Copy link
Contributor

jgsogo commented Jan 11, 2022

... love to see when a PR adds configurations 🚀

@SSE4 SSE4 closed this Jan 12, 2022
@SSE4 SSE4 reopened this Jan 12, 2022
Copy link
Contributor

@jgsogo jgsogo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💯

@conan-center-bot
Copy link
Collaborator

All green in build 2 (4772bc72d2a452d03e27bf2320ad573851030014):

  • mpir/3.0.0@:
    All packages built successfully! (All logs)

Comment on lines +104 to +111
env_build = {"CC": tools.XCRun(self.settings).cc,
"CXX": tools.XCRun(self.settings).cxx}
if hasattr(self, "settings_build"):
# there is no CFLAGS_FOR_BUILD/CXXFLAGS_FOR_BUILD
xcrun = tools.XCRun(self.settings_build)
flags = " -Wno-implicit-function-declaration -isysroot {} -arch {}".format(xcrun.sdk_path, tools.to_apple_arch(self.settings_build.arch))
env_build["CC_FOR_BUILD"] = xcrun.cc + flags
env_build["CXX_FOR_BUILD"] = xcrun.cxx + flags
Copy link
Contributor

@SpaceIm SpaceIm Jan 13, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wouldn't it be more elegant and robust to get self._autotools.flags and self._autotools.cxxflags in _configure_autotools(), then inject those values + -Wno-implicit-function-declaration (likely for apple-clang >= 12) in CC_FOR_BUILD and CXX_FOR_BUILD if cross-building (I guess those values are required for some reason in this case instead of CFLAGS and CXXFLAGS)?
Indeed -isysroot <path> -arch <arch> is handled by AutoToolsBuildEnvironment AFAIK.

@ghost
Copy link

ghost commented Feb 2, 2022

I detected other pull requests that are modifying mpir/all recipe:

This message is automatically generated by https://github.com/ericLemanissier/conan-center-conflicting-prs so don't hesitate to report issues/improvements there.

@conan-center-bot conan-center-bot merged commit a9b9f0f into conan-io:master Feb 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[package] MPIR/3.0.0: Does not build on Apple M1
6 participants