mirror of
https://github.com/wolfpld/tracy
synced 2025-04-29 12:23:53 +00:00
Use lld linker, if available.
This commit is contained in:
parent
7f44eba2e9
commit
b10c83f358
@ -1,11 +1,6 @@
|
|||||||
ARCH := $(shell uname -m)
|
|
||||||
|
|
||||||
CFLAGS := -g3 -Wall
|
CFLAGS := -g3 -Wall
|
||||||
DEFINES := -DDEBUG
|
DEFINES := -DDEBUG
|
||||||
BUILD := debug
|
BUILD := debug
|
||||||
|
|
||||||
ifeq ($(ARCH),x86_64)
|
include ../../../common/unix-debug.mk
|
||||||
CFLAGS += -msse4.1
|
|
||||||
endif
|
|
||||||
|
|
||||||
include build.mk
|
include build.mk
|
||||||
|
9
common/unix-debug.mk
Normal file
9
common/unix-debug.mk
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
ARCH := $(shell uname -m)
|
||||||
|
|
||||||
|
ifeq (1,$(shell ld.lld --version > /dev/null && echo 1 || echo 0))
|
||||||
|
LDFLAGS += -fuse-ld=lld
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifeq ($(ARCH),x86_64)
|
||||||
|
CFLAGS += -msse4.1
|
||||||
|
endif
|
@ -6,6 +6,10 @@ else
|
|||||||
LDFLAGS := -s
|
LDFLAGS := -s
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifeq (1,$(shell ld.lld --version > /dev/null && echo 1 || echo 0))
|
||||||
|
LDFLAGS += -fuse-ld=lld
|
||||||
|
endif
|
||||||
|
|
||||||
ifneq (,$(filter $(ARCH),aarch64 arm64))
|
ifneq (,$(filter $(ARCH),aarch64 arm64))
|
||||||
CFLAGS += -mcpu=native
|
CFLAGS += -mcpu=native
|
||||||
else
|
else
|
||||||
|
@ -1,11 +1,6 @@
|
|||||||
ARCH := $(shell uname -m)
|
|
||||||
|
|
||||||
CFLAGS := -g3 -Wall
|
CFLAGS := -g3 -Wall
|
||||||
DEFINES := -DDEBUG
|
DEFINES := -DDEBUG
|
||||||
BUILD := debug
|
BUILD := debug
|
||||||
|
|
||||||
ifeq ($(ARCH),x86_64)
|
include ../../../common/unix-debug.mk
|
||||||
CFLAGS += -msse4.1
|
|
||||||
endif
|
|
||||||
|
|
||||||
include build.mk
|
include build.mk
|
||||||
|
@ -1,11 +1,6 @@
|
|||||||
ARCH := $(shell uname -m)
|
|
||||||
|
|
||||||
CFLAGS := -g3 -Wall
|
CFLAGS := -g3 -Wall
|
||||||
DEFINES := -DDEBUG
|
DEFINES := -DDEBUG
|
||||||
BUILD := debug
|
BUILD := debug
|
||||||
|
|
||||||
ifeq ($(ARCH),x86_64)
|
include ../../../common/unix-debug.mk
|
||||||
CFLAGS += -msse4.1
|
|
||||||
endif
|
|
||||||
|
|
||||||
include build.mk
|
include build.mk
|
||||||
|
@ -1,11 +1,6 @@
|
|||||||
ARCH := $(shell uname -m)
|
|
||||||
|
|
||||||
CFLAGS := -g3 -Wall
|
CFLAGS := -g3 -Wall
|
||||||
DEFINES := -DDEBUG
|
DEFINES := -DDEBUG
|
||||||
BUILD := debug
|
BUILD := debug
|
||||||
|
|
||||||
ifeq ($(ARCH),x86_64)
|
include ../../../common/unix-debug.mk
|
||||||
CFLAGS += -msse4.1
|
|
||||||
endif
|
|
||||||
|
|
||||||
include build.mk
|
include build.mk
|
||||||
|
@ -1,11 +1,6 @@
|
|||||||
ARCH := $(shell uname -m)
|
|
||||||
|
|
||||||
CFLAGS := -g3 -Wall
|
CFLAGS := -g3 -Wall
|
||||||
DEFINES := -DDEBUG
|
DEFINES := -DDEBUG
|
||||||
BUILD := debug
|
BUILD := debug
|
||||||
|
|
||||||
ifeq ($(ARCH),x86_64)
|
include ../../../common/unix-debug.mk
|
||||||
CFLAGS += -msse4.1
|
|
||||||
endif
|
|
||||||
|
|
||||||
include build.mk
|
include build.mk
|
||||||
|
Loading…
x
Reference in New Issue
Block a user