Skip to content

Commit 01409c8

Browse files
committed
Try using lld on macOS
1 parent 5d9f282 commit 01409c8

File tree

1 file changed

+3
-3
lines changed
  • contracts/c-sphincs-all-in-one-lock

1 file changed

+3
-3
lines changed

contracts/c-sphincs-all-in-one-lock/Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,9 @@ CFLAGS += -I $(SPHINCS_PLUS_DIR) -I $(CUR_BUILD) -I $(cur_dir)/utils
5151
# CFLAGS += -DCKB_C_STDLIB_PRINTF
5252

5353
OS := $(shell uname -s)
54-
LDFLAGS :=
55-
ifneq ($(OS),Darwin)
56-
LDFLAGS += -static -Wl,--gc-sections
54+
LDFLAGS := -static -Wl,--gc-sections
55+
ifeq ($(OS),Darwin)
56+
LDFLAGS += -fuse-ld=ld.lld
5757
endif
5858

5959
default: build

0 commit comments

Comments
 (0)