Inside Bitcoin
Opening the selected file…
Opening the selected file…
The code behind the network, with room to understand it.
Release published 2026-10-28 · Snapshot fetched 2026-11-01. Latest stable release at fetch time; development branches and Git history are excluded. Only the selected code window and visible folders load here.
1OSX_MIN_VERSION=14.02OSX_SDK_VERSION=14.03XCODE_VERSION=26.1.14XCODE_BUILD_ID=17B1005LLD_VERSION=7117OSX_SDK=$(SDK_PATH)/Xcode-$(XCODE_VERSION)-$(XCODE_BUILD_ID)-extracted-SDK-with-libcxx-headers9clang_prog=$(shell command -v clang)10clangxx_prog=$(shell command -v clang++)12darwin_AR=$(shell command -v llvm-ar)13darwin_NM=$(shell command -v llvm-nm)14darwin_OBJCOPY=$(shell command -v llvm-objcopy)15darwin_OBJDUMP=$(shell command -v llvm-objdump)16darwin_RANLIB=$(shell command -v llvm-ranlib)17darwin_STRIP=$(shell command -v llvm-strip)19# Flag explanations:20#21# -mlinker-version22#23# Ensures that modern linker features are enabled. See here for more24# details: https://github.com/bitcoin/bitcoin/pull/19407.25#26# -isysroot$(OSX_SDK) -nostdlibinc27#28# Disable default include paths built into the compiler as well as29# those normally included for libc and libc++. The only path that30# remains implicitly is the clang resource dir.31#32# -iwithsysroot / -iframeworkwithsysroot33#34# Adds the desired paths from the SDK35#36# -platform_version37#38# Indicate to the linker the platform, the oldest supported version,39# and the SDK used.40#41# -no_adhoc_codesign42#43# Disable adhoc codesigning (for now) when using LLVM tooling, to avoid44# non-determinism issues with the Identifier field.45#46# -Xclang -fno-cxx-modules47#48# Disable C++ modules. We don't use these, and modules cause definition issues49# in the SDK, where __has_feature(modules) is used to define USE_CLANG_TYPES,50# which is in turn used as an include guard.52darwin_CC=$(clang_prog) --target=$(host) \53-isysroot$(OSX_SDK) -nostdlibinc \54-iwithsysroot/usr/include -iframeworkwithsysroot/System/Library/Frameworks56darwin_CXX=$(clangxx_prog) --target=$(host) \57-isysroot$(OSX_SDK) -nostdlibinc \58-iwithsysroot/usr/include/c++/v1 \59-iwithsysroot/usr/include -iframeworkwithsysroot/System/Library/Frameworks61darwin_CFLAGS=-mmacos-version-min=$(OSX_MIN_VERSION)62darwin_CXXFLAGS=-mmacos-version-min=$(OSX_MIN_VERSION) -Xclang -fno-cxx-modules63darwin_LDFLAGS=-Wl,-platform_version,macos,$(OSX_MIN_VERSION),$(OSX_SDK_VERSION)65ifneq ($(build_os),darwin)66darwin_CFLAGS += -mlinker-version=$(LLD_VERSION)67darwin_CXXFLAGS += -mlinker-version=$(LLD_VERSION)68darwin_LDFLAGS += -Wl,-no_adhoc_codesign -fuse-ld=lld69endif71darwin_release_CFLAGS=-O272darwin_release_CXXFLAGS=$(darwin_release_CFLAGS)74darwin_debug_CFLAGS=-O1 -g75darwin_debug_CXXFLAGS=$(darwin_debug_CFLAGS)77darwin_cmake_system_name=Darwin78# Darwin version, which corresponds to OSX_MIN_VERSION.79# See https://en.wikipedia.org/wiki/Darwin_(operating_system)80darwin_cmake_system_version=20.1
Independent explanations by MyBitcoinExplorer. Not affiliated with or endorsed by Bitcoin Core. Guides are educational and do not replace the source or its tests.
Bitcoin Core source © its contributors, distributed under the MIT license. Original notices and bundled third-party licenses are retained in the source tree.