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 Jan 16, 2024
1 parent fb21804 commit 15faf0b
Show file tree
Hide file tree
Showing 2 changed files with 9 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|@no_harden@|$(NO_HARDEN)|' \
$< > $@
touch $@

Expand Down
8 changes: 8 additions & 0 deletions depends/toolchain.cmake.in
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright (c) 2023-present The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or https://opensource.org/license/mit/.

# This file is expected to be highly volatile and may still change substantially.

set(CMAKE_SYSTEM_NAME @host_system@)
Expand Down Expand Up @@ -131,3 +135,7 @@ endif()
if(NOT WITH_USDT AND "@no_usdt@" STREQUAL "1")
set(WITH_USDT OFF CACHE STRING "")
endif()

if(NOT HARDENING AND "@no_harden@" STREQUAL "1")
set(HARDENING OFF CACHE STRING "")
endif()

0 comments on commit 15faf0b

Please sign in to comment.