File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -27,8 +27,8 @@ OSX_SDK=$(SDK_PATH)/Xcode-$(XCODE_VERSION)-$(XCODE_BUILD_ID)-extracted-SDK-with-
27
27
# https://reviews.llvm.org/D64089, we should use that instead. Read the
28
28
# differential summary there for more details.
29
29
#
30
- darwin_CC =clang -target $(host ) -mmacosx-version-min=$(OSX_MIN_VERSION ) --sysroot $(OSX_SDK ) -mlinker-version=$(LD64_VERSION ) -B$(build_prefix ) /bin
31
- darwin_CXX =clang++ -target $(host ) -mmacosx-version-min=$(OSX_MIN_VERSION ) --sysroot $(OSX_SDK ) -stdlib=libc++ -mlinker-version=$(LD64_VERSION ) -B$(build_prefix ) /bin -nostdinc++ -isystem $(OSX_SDK ) /usr/include/c++/v1
30
+ darwin_CC =clang -target $(host ) -flto=thin - mmacosx-version-min=$(OSX_MIN_VERSION ) --sysroot $(OSX_SDK ) -mlinker-version=$(LD64_VERSION ) -B$(build_prefix ) /bin
31
+ darwin_CXX =clang++ -target $(host ) -flto=thin - mmacosx-version-min=$(OSX_MIN_VERSION ) --sysroot $(OSX_SDK ) -stdlib=libc++ -mlinker-version=$(LD64_VERSION ) -B$(build_prefix ) /bin -nostdinc++ -isystem $(OSX_SDK ) /usr/include/c++/v1
32
32
33
33
darwin_CFLAGS =-pipe
34
34
darwin_CXXFLAGS =$(darwin_CFLAGS )
Original file line number Diff line number Diff line change 5
5
# Explicitly point to our binaries (e.g. cctools) so that they are
6
6
# ensured to be found and preferred over other possibilities.
7
7
#
8
- default_host_CC = clang -target $(host ) -B$(build_prefix ) /bin
9
- default_host_CXX = clang++ -target $(host ) -B$(build_prefix ) /bin -stdlib=libc++
8
+ default_host_CC = clang -target $(host ) -flto=thin - B$(build_prefix ) /bin
9
+ default_host_CXX = clang++ -target $(host ) -flto=thin - B$(build_prefix ) /bin -stdlib=libc++
10
10
default_host_AR = llvm-ar
11
11
default_host_RANLIB = llvm-ranlib
12
12
default_host_STRIP = llvm-strip
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ if ENABLE_WALLET
39
39
LIBBITCOIN_WALLET =libbitcoin_wallet.a
40
40
endif
41
41
42
- RUST_ENV_VARS = RUSTC="$(RUSTC ) " TERM=dumb
42
+ RUST_ENV_VARS = RUSTC="$(RUSTC ) " TERM=dumb RUSTFLAGS="-Clinker-plugin-lto"
43
43
RUST_BUILD_OPTS = --lib --release --target $(RUST_TARGET )
44
44
45
45
rust_verbose = $(rust_verbose_@AM_V@ )
You can’t perform that action at this time.
0 commit comments