Skip to content

Commit

Permalink
fixup! build: Generate share/toolchain.cmake in depends
Browse files Browse the repository at this point in the history
  • Loading branch information
hebasto committed Dec 12, 2023
1 parent b1690e2 commit 5c4f2e8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions depends/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,7 @@ $(host_prefix)/share/toolchain.cmake : toolchain.cmake.in $(host_prefix)/.stamp_
-e 's|@no_upnp@|$(NO_UPNP)|' \
-e 's|@no_natpmp@|$(NO_NATPMP)|' \
-e 's|@no_usdt@|$(NO_USDT)|' \
-e 's|@lto@|$(LTO)|' \
$< > $@
touch $@

Expand Down
5 changes: 5 additions & 0 deletions depends/toolchain.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -131,3 +131,8 @@ endif()
if(NOT WITH_USDT AND "@no_usdt@" STREQUAL "1")
set(WITH_USDT OFF CACHE STRING "")
endif()

if(NOT LTO AND "@lto@" STREQUAL "1")
set(LTO ON CACHE STRING "")
set(LTO_FLAGS -flto CACHE STRING "")
endif()

0 comments on commit 5c4f2e8

Please sign in to comment.