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

Make optimization level configurable via CFLAGS env variable #363

Closed

Conversation

LiviaMedeiros
Copy link
Contributor

Let's make CFLAGS="-Os" make possible.

bol-van and others added 26 commits August 25, 2024 18:04
drop executable bit from `nfq/darkmagic.c`
Исправлены мелкие грамматические ошибки
@ValdikSS
Copy link

ValdikSS commented Sep 6, 2024

Well, it's kind of possible even without this change. When you set the variable inside make (make CFLAGS="-Os"), then the definition skips appending.
If you do that as an env (CFLAGS="-Os" make), it does not.

So you can just run `make CFLAGS="-Os -std=gnu99"

@LiviaMedeiros
Copy link
Contributor Author

Sure, but it still should be agnostic to other flags. make CFLAGS="-Os" would override -std=gnu99 and make it impossible to set different flags in nested makefiles.

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.