-
Notifications
You must be signed in to change notification settings - Fork 1k
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
[question] Packages build caching #17846
Comments
And if I change
And I'm also confused by the fact that boost have been found in cache instead of building from source |
Thanks for your question @omgronny The bit that you might be missing is this one, that is from the Conan 1 docs (we haven't had time yet to update it for the new Conan 2 docs), but that it would still be valid for Conan 2: https://docs.conan.io/1/howtos/sanitizers.html#adding-custom-settings The key points are:
|
Thanks for your answer I also use conan profiles for release:
and for asan:
So I should add |
Yes, It seems to me that adding |
|
Thank you for helping I have one more related question. What is the proper way to build my project for specific arch so that all the imported packages will also be built fot this arch? Should I set And is it possible to set arch to |
The way that Conan has to define architeucture is with the Conan default |
I have one more question: For example, |
But that is a micro-architecture, not an architecture, isn't it? For micro-architectures, the recommendation would be to model them as sub-settings of the corresponding architecture, but leave the architecture as Then you might to define the compiler flags accordingly, as the Conan built-in build-system integrations are not aware of such subsetting definition. So you might need to pass the specific flag, maybe via |
So in my settings.yml it should be something like
And then in conan profile
But what "???" should be? And I didn't actually get a pint with |
You can define Then in it, define any name that you like, something like:
You can refer to it in recipes as
The |
Okay, now I get the idea of specifying Just to be sure (because I don't know how to properly check it myself)
This is what |
The configuration comes from profiles, you cannot define it in recipes. See https://docs.conan.io/2/knowledge/guidelines.html
If you want to condition something on a setting for the current package build, do it in the |
What is your question?
Hello, I use conan2 in my projects and I face an unexpected bahavior with building a packages (builds are caching even if I change build settings):
I have a boost stacktrace dependency, and if I build my project in release version w/o sanitizers, it compiles fine
If I run
rm -rf ~/.conan2
, and then build my project with asan, I get an error:This is a known boost error, so it is expected behahior
But if I build my project w/o asan, and then build it with asan (w/o removing
.conan2
), it compiles fine. So I think some of my projects actually compiling w/o sanitizers because conan just use their built versionsI use
--build missing
flag inconan install
because if compiler settings hasn't changed, I want conan too use build versionsmy
conanfile.py
:Have you read the CONTRIBUTING guide?
The text was updated successfully, but these errors were encountered: