Skip to content

make : support overriding CFLAGS/CXXFLAGS/CPPFLAGS/LDFLAGS #2886

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

Merged
merged 5 commits into from
Sep 3, 2023

Conversation

cebtenzzre
Copy link
Collaborator

This PR implements something I've been wanting for a long time - the ability to override build flags via the command line when running make.

For example, one can now easily check for missing __attribute__((format(printf, ...))) attributes:

CFLAGS=-Wformat=2 CXXFLAGS=$CFLAGS make

Or make a release build with assertions enabled:

make CPPFLAGS='-UNDEBUG'

All without having to edit the Makefile.

@cebtenzzre
Copy link
Collaborator Author

Is this good to merge?

@ggerganov ggerganov merged commit bc054af into ggml-org:master Sep 3, 2023
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.

2 participants