Merge pull request #394 from graydon/build-adjustments

Build adjustments
This commit is contained in:
Bartosz Taudul 2022-05-20 11:18:36 +02:00 committed by GitHub
commit 1989129185
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 28 additions and 5 deletions

View File

@ -1,4 +1,7 @@
CFLAGS := -O3 -flto
CFLAGS := -O3
ifndef TRACY_NO_LTO
CFLAGS += -flto
endif
DEFINES := -DNDEBUG
BUILD := release

View File

@ -6,6 +6,8 @@ LDFLAGS := -fuse-ld=mold
endif
endif
ifndef TRACY_NO_ISA_EXTENSIONS
ifeq ($(ARCH),x86_64)
CFLAGS += -msse4.1
endif
endif

View File

@ -10,8 +10,10 @@ LDFLAGS := -s
endif
endif
ifndef TRACY_NO_ISA_EXTENSIONS
ifneq (,$(filter $(ARCH),aarch64 arm64))
CFLAGS += -mcpu=native
else
CFLAGS += -march=native
endif
endif

View File

@ -1,4 +1,7 @@
CFLAGS := -O3 -flto
CFLAGS := -O3
ifndef TRACY_NO_LTO
CFLAGS += -flto
endif
DEFINES := -DNDEBUG
BUILD := release

View File

@ -1,4 +1,7 @@
CFLAGS := -O3 -flto
CFLAGS := -O3
ifndef TRACY_NO_LTO
CFLAGS += -flto
endif
DEFINES := -DNDEBUG
BUILD := release

View File

@ -4,8 +4,10 @@ CFLAGS := -g3 -Wall
DEFINES := -DDEBUG
BUILD := debug
ifndef TRACY_NO_ISA_EXTENSIONS
ifeq ($(ARCH),x86_64)
CFLAGS += -msse4.1
endif
endif
include build.mk

View File

@ -4,8 +4,10 @@ CFLAGS := -O3 -s
DEFINES := -DNDEBUG
BUILD := release
ifndef TRACY_NO_ISA_EXTENSIONS
ifeq ($(ARCH),x86_64)
CFLAGS += -msse4.1
endif
endif
include build.mk

View File

@ -1,4 +1,7 @@
CFLAGS := -O3 -flto
CFLAGS := -O3
ifndef TRACY_NO_LTO
CFLAGS += -flto
endif
DEFINES := -DNDEBUG
BUILD := release

View File

@ -1,4 +1,7 @@
CFLAGS := -O3 -flto
CFLAGS := -O3
ifndef TRACY_NO_LTO
CFLAGS += -flto
endif
DEFINES := -DNDEBUG
BUILD := release