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

Missing build information in update_build_if function #572

Open
Forbinn opened this issue Jul 10, 2021 · 0 comments
Open

Missing build information in update_build_if function #572

Forbinn opened this issue Jul 10, 2021 · 0 comments

Comments

@Forbinn
Copy link

Forbinn commented Jul 10, 2021

Description of Problem, Request, or Question

The update_build_if function is missing information inside the build object. The README precise that you can use the os information (https://github.com/conan-io/conan-package-tools#filtering-or-modifying-the-configurations) but it does not seems to be present.

from cpt.packager import ConanMultiPackager

if __name__ == "__main__":
    builder = ConanMultiPackager()
    builder.add_common_builds(pure_c=False)
    builder.update_build_if(lambda build: print(build.settings))
  • On linux -> {'arch': 'x86', 'build_type': 'Release', 'compiler': 'gcc', 'compiler.version': '5', 'compiler.libcxx': 'libstdc++11'}
  • On Windows -> {'compiler': 'Visual Studio', 'compiler.version': '14', 'arch': 'x86', 'build_type': 'Release', 'compiler.runtime': 'MT'}

Environment Details

  • Conan Package Tools Version: 0.35.1
  • Conan version: conan 1.37.2
  • Python version: python 3.7.9
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

No branches or pull requests

1 participant