1
1
mirror of https://github.com/rui314/mold.git synced 2024-12-27 10:23:41 +03:00
This commit is contained in:
Rui Ueyama 2021-04-07 18:52:38 +09:00
parent 48ccc2adde
commit b488948499

View File

@ -31,14 +31,20 @@ endif
LTO ?= 0
ifeq ($(LTO), 1)
CPPFLAGS += -O3 -flto
LDFLAGS += -flto
CPPFLAGS += -flto -O3
LDFLAGS += -flto
endif
SANITIZE ?= 0
ifeq ($(SANITIZE), 1)
ASAN ?= 0
ifeq ($(ASAN), 1)
CPPFLAGS += -fsanitize=address
LDFLAGS += -fsanitize=address
LDFLAGS += -fsanitize=address
endif
TSAN ?= 0
ifeq ($(TSAN), 1)
CPPFLAGS += -fsanitize=thread
LDFLAGS += -fsanitize=thread
endif
all: mold mold-wrapper.so