Skip to content

Instantly share code, notes, and snippets.

@leiless
Created January 29, 2019 15:35
Show Gist options
  • Save leiless/c3c0c94fbebcd53b445a3d9a2393a5e7 to your computer and use it in GitHub Desktop.
Save leiless/c3c0c94fbebcd53b445a3d9a2393a5e7 to your computer and use it in GitHub Desktop.
Stringify Makefile compile flags for ease of debugging
# 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