mirror of
https://github.com/rui314/mold.git
synced 2024-12-27 10:23:41 +03:00
wip
This commit is contained in:
parent
48ccc2adde
commit
b488948499
16
Makefile
16
Makefile
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user