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

Build: allow -Werror to be disabled even on CI branches #1471

Merged
merged 2 commits into from
Mar 4, 2022

Conversation

lgritz
Copy link
Collaborator

@lgritz lgritz commented Feb 27, 2022

Slight reworking of -Werror logic to let the default behavior be
changed by setting a cmake variable. In particular, this allows us to
make a CI build disable -Werror when we need to.

Previously, having the "OSL_CI" env variable set trumped all else and
forced -Werror. Now it just contributes to the default behavior, but
setting -DSTOP_ON_WARNING=OFF and cmake config time can still
disable it.

Signed-off-by: Larry Gritz [email protected]

Slight reworking of -Werror logic to let the default behavior be
changed by setting a cmake variable. In particular, this allows us to
make a CI build disable -Werror when we need to.

Previously, having the "OSL_CI" env variable set trumped all else and
forced -Werror. Now it just contributes to the default behavior, but
setting `-DSTOP_ON_WARNING=OFF` and cmake config time can still
disable it.

Signed-off-by: Larry Gritz <[email protected]>
@lgritz lgritz merged commit 1773995 into AcademySoftwareFoundation:main Mar 4, 2022
@lgritz lgritz deleted the lg-warn branch March 4, 2022 08:09
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.

1 participant