Open Forbinn opened 3 years ago
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.
update_build_if
build
os
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))
{'arch': 'x86', 'build_type': 'Release', 'compiler': 'gcc', 'compiler.version': '5', 'compiler.libcxx': 'libstdc++11'}
{'compiler': 'Visual Studio', 'compiler.version': '14', 'arch': 'x86', 'build_type': 'Release', 'compiler.runtime': 'MT'}
Description of Problem, Request, or Question
The
update_build_if
function is missing information inside thebuild
object. The README precise that you can use theos
information (https://github.com/conan-io/conan-package-tools#filtering-or-modifying-the-configurations) but it does not seems to be present.{'arch': 'x86', 'build_type': 'Release', 'compiler': 'gcc', 'compiler.version': '5', 'compiler.libcxx': 'libstdc++11'}
{'compiler': 'Visual Studio', 'compiler.version': '14', 'arch': 'x86', 'build_type': 'Release', 'compiler.runtime': 'MT'}
Environment Details