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

Update conanfile.py #568

Merged

Conversation

Psy-Kai
Copy link
Contributor

@Psy-Kai Psy-Kai commented Aug 6, 2020

settings.os represent the target system not the build system (https://docs.conan.io/en/latest/systems_cross_building/cross_building.html#gnu-triplet-convention).
Thus we need to check the settings_os_build variable not the os variable.
This will fix the problem that CMake tries to check if the compiler works with wrong parameter (which results in using -rdynamic which may not be supported on mcu compilers)

settings.os represent the target system not the build system (https://docs.conan.io/en/latest/systems_cross_building/cross_building.html#gnu-triplet-convention).
Thus we need to check the `settings_os_build` variable not the `os` variable.
This will fix the problem that CMake tries to check if the compiler works with wrong parameter (which results in using -`rdynamic` which may not be supported on mcu compilers)
@PetteriAimonen
Copy link
Member

Seems ok to me.

@amatosov-rbx Do you want to take a look?

@PetteriAimonen PetteriAimonen merged commit e1f55a8 into nanopb:master Aug 10, 2020
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.

2 participants