Skip to content
Snippets Groups Projects
Commit c9d725ac authored by Kaspar Schleiser's avatar Kaspar Schleiser
Browse files

dist: tools: genconfigheader.sh: include LTOFLAGS as comment if set

parent 9d5e601b
Branches
No related tags found
No related merge requests found
...@@ -42,6 +42,9 @@ set -e ...@@ -42,6 +42,9 @@ set -e
echo "/* DO NOT edit this file, your changes will be overwritten and won't take any effect! */" > "${TMPFILE}" echo "/* DO NOT edit this file, your changes will be overwritten and won't take any effect! */" > "${TMPFILE}"
echo "/* Generated from CFLAGS: $@ */" >> "${TMPFILE}" echo "/* Generated from CFLAGS: $@ */" >> "${TMPFILE}"
[ -n "${LTOFLAGS}" ] && echo "/* LTOFLAGS=${LTOFLAGS} */" >> "${TMPFILE}"
for arg in "$@"; do for arg in "$@"; do
case ${arg} in case ${arg} in
-D*) -D*)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment