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 Nov 15, 2023
1 parent cc495b8 commit 3397612
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 @@ -126,6 +126,11 @@ 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()

if(DEFINED ENV{PYTHONPATH})
set(PYTHONPATH "@depends_prefix@/native/lib/python3/dist-packages:$ENV{PYTHONPATH}")
else()
Expand Down

0 comments on commit 3397612

Please sign in to comment.