Skip to content

cautious treatment of compiler in b2 generator - #4202

Merged
danimtb merged 2 commits into
conan-io:developfrom
grisumbras:feature/b2-fix-fail-when-no-compiler
Dec 27, 2018
Merged

danimtb merged 2 commits into
conan-io:developfrom
grisumbras:feature/b2-fix-fail-when-no-compiler

Conversation

@grisumbras

@grisumbras grisumbras commented Dec 26, 2018

Copy link
Copy Markdown
Contributor

Using settings.get_safe more actively. Conversion of Nones to strings.
Fixes #4201

Changelog: Bugfix: b2 generator was failing when package recipe didn't use compiler setting
Docs: omit

  • Refer to the issue that supports this Pull Request.
  • I've read the Contributing guide.
  • I've followed the PEP8 style guides for Python code.

Using settings.get_safe more actively. Conversion of Nones to strings.
Fixes conan-io#4201
@CLAassistant

CLAassistant commented Dec 26, 2018

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@jgsogo
jgsogo requested a review from danimtb December 27, 2018 10:08

@danimtb danimtb left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks for the simplification! We are willing to review the whole b2 generator so this is very welcome 😄

@danimtb

danimtb commented Dec 27, 2018

Copy link
Copy Markdown
Member

Hi @grisumbras!

Thanks for your PR. Could you please include a brief changelog in the description of this PR? This will help us to include this in the next release. Thanks! 😃

@danimtb

danimtb commented Dec 27, 2018

Copy link
Copy Markdown
Member

Oh, I forgot to mention! It would be nice to write a test with the use case that was failing before this changes. I could help with it in case you are not familiar with them or don't have time. Just ping me!

@danimtb danimtb self-assigned this Dec 27, 2018
@danimtb danimtb added this to the 1.12 milestone Dec 27, 2018
@grisumbras

Copy link
Copy Markdown
Contributor Author

Should I prepend a commit with test or just add a commit?

@danimtb

danimtb commented Dec 27, 2018

Copy link
Copy Markdown
Member

An additional commit will be fine. We mostly review the diff so it doesn't matter that much

@grisumbras

Copy link
Copy Markdown
Contributor Author

Also, how should I create a ConanFile instance suitable for constructing a generator?

@danimtb

danimtb commented Dec 27, 2018

Copy link
Copy Markdown
Member

Have a look at https://github.com/conan-io/conan/blob/develop/conans/test/unittests/client/generators/b2_test.py

I guess your test should be very similar

@grisumbras

Copy link
Copy Markdown
Contributor Author

I updated the PR description and added a test.

@danimtb danimtb left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Cool! Thanks @grisumbras

@danimtb
danimtb merged commit db11550 into conan-io:develop Dec 27, 2018
NoWiseMan pushed a commit to NoWiseMan/conan that referenced this pull request Jan 9, 2019
* cautious treatment of compiler in b2 generator

Using settings.get_safe more actively. Conversion of Nones to strings.
Fixes conan-io#4201

* test for b2 generator support of empty settings
@lasote

lasote commented Jan 17, 2019

Copy link
Copy Markdown
Contributor

@danimtb please add the changelog and docs entries to this PR body.

@lasote

lasote commented Jan 17, 2019

Copy link
Copy Markdown
Contributor

My bad, it was already there.

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.

b2 generator fails to work when some settings aren't used by the project

4 participants