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

Replace Makefile check for defines with checks for values #39905

Merged
merged 1 commit into from
Apr 26, 2020

Conversation

anothersimulacrum
Copy link
Member

Summary

SUMMARY: Bugfixes "Check values of variables in makefile instead of simply if they are defined"

Purpose of change

It was confusing that setting something like LTO to 0, instead of 1 would behave the same as setting it to 1.

Describe the solution

To address this, change Makefile checks for variables that will only have values of either 1 or 0 from checking if they're defined to checking if they equal 1.

Testing

I could still build with the same options, then various CI checks should exercise a good deal of the other options.

It was confusing that setting something like LTO to 0, instead of 1
would behave the same as setting it to 1.
To address this, change Makefile checks for variables that will only
have values of either 1 or 0 from checking if they're defined to
checking if they equal 1.
@ifreund ifreund added <Bugfix> This is a fix for a bug (or closes open issue) Code: Build Issues regarding different builds and build environments labels Apr 25, 2020
@kevingranade kevingranade merged commit 9eb2ff5 into CleverRaven:master Apr 26, 2020
@anothersimulacrum anothersimulacrum deleted the makefile-clean branch April 26, 2020 02:10
Drewscriver pushed a commit to Drewscriver/Cataclysm-DDA that referenced this pull request Apr 30, 2020
It was confusing that setting something like LTO to 0, instead of 1
would behave the same as setting it to 1.
To address this, change Makefile checks for variables that will only
have values of either 1 or 0 from checking if they're defined to
checking if they equal 1.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
<Bugfix> This is a fix for a bug (or closes open issue) Code: Build Issues regarding different builds and build environments
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants