diff options
author | fanquake <fanquake@gmail.com> | 2021-11-16 10:01:38 +0800 |
---|---|---|
committer | fanquake <fanquake@gmail.com> | 2022-06-14 12:08:27 +0100 |
commit | 094772656d71b3f5022ae292094e878da035de9e (patch) | |
tree | 25e0ef7721c5dc5a4970324a48f892141d8c3541 /depends/gen_id | |
parent | 9e4fbebcc8e497016563e46de4c64fa094edab2d (diff) |
build: support LTO in depends
No Qt for now.
Diffstat (limited to 'depends/gen_id')
-rwxr-xr-x | depends/gen_id | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/depends/gen_id b/depends/gen_id index ac69ca7ee1..a0cd586461 100755 --- a/depends/gen_id +++ b/depends/gen_id @@ -1,7 +1,7 @@ #!/usr/bin/env bash # Usage: env [ CC=... ] [ CXX=... ] [ AR=... ] [ RANLIB=... ] [ STRIP=... ] \ -# [ DEBUG=... ] ./build-id [ID_SALT]... +# [ DEBUG=... ] [ LTO=... ] ./build-id [ID_SALT]... # # Prints to stdout a SHA256 hash representing the current toolset, used by # depends/Makefile as a build id for caching purposes (detecting when the @@ -63,6 +63,10 @@ env | grep '^STRIP_' echo "END STRIP" + echo "BEGIN LTO" + echo "LTO=${LTO}" + echo "END LTO" + echo "END ALL" ) | if [ -n "$DEBUG" ] && command -v tee > /dev/null 2>&1; then # When debugging and `tee` is available, output the preimage to stderr |