Created
January 29, 2019 15:35
-
-
Save leiless/c3c0c94fbebcd53b445a3d9a2393a5e7 to your computer and use it in GitHub Desktop.
Stringify Makefile compile flags for ease of debugging
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Stringify compile flags for ease of debugging | |
| CPPFLAGS+= -D__CFLAGS__=\"$(shell sed 's/ /\\ /g' <<< '$(CFLAGS)')\" | |
| CPPFLAGS+= -D__LDFLAGS__=\"$(shell sed 's/ /\\ /g' <<< '$(LDFLAGS)')\" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment