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

[service] Provide a global configuration setting accessible to recipes when a build is running on CCI #23050

Closed
planetmarshall opened this issue Mar 11, 2024 · 4 comments

Comments

@planetmarshall
Copy link
Contributor

What is your problem/feature request?

In #17509 @jwillikers suggested using a configuration variable to turn off certain options in the LLVM recipe except when it is running on CCI.

It would be usefult to have the inverse behaviour, that is, have a config variable available that can be checked to see if a build is running on CCI, then certain options such as resource limitations can be activated. However, users get the default behaviour when building locally.

See #17509 (comment)

@uilianries
Copy link
Member

It would be usefult to have the inverse behaviour, that is, have a config variable available that can be checked to see if a build is running on CCI

@planetmarshall we have the environment variable CONAN_CENTER_BUILD_SERVICE=1. It's not documented because was added very recently.

@jcar87
Copy link
Contributor

jcar87 commented Mar 11, 2024

Please bear in mind that it's not intended for general use and will be only allowed on a case-by-case basis.
So please ask us before adding it to a recipe.

@uilianries
Copy link
Member

I just created the PR #23052 to document the variable.

@planetmarshall
Copy link
Contributor Author

Please bear in mind that it's not intended for general use and will be only allowed on a case-by-case basis. So please ask us before adding it to a recipe.

Added in d18fa46 for #22997

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

3 participants