From 94c57fa447a66039c0d30d4249e3d4e7f913a161 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Fri, 15 Dec 2023 17:09:28 +0000 Subject: [PATCH] Added relwithdebug build target for unix build of profiler --- profiler/build/unix/Makefile | 3 +++ profiler/build/unix/relwithdebug.mk | 14 ++++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 profiler/build/unix/relwithdebug.mk diff --git a/profiler/build/unix/Makefile b/profiler/build/unix/Makefile index 65243592..91aafe5a 100644 --- a/profiler/build/unix/Makefile +++ b/profiler/build/unix/Makefile @@ -10,6 +10,9 @@ debug: release: @$(MAKE) -f release.mk all +relwithdebug: + @$(MAKE) -f relwithdebug.mk all + clean: @$(MAKE) -f build.mk clean diff --git a/profiler/build/unix/relwithdebug.mk b/profiler/build/unix/relwithdebug.mk new file mode 100644 index 00000000..115f7420 --- /dev/null +++ b/profiler/build/unix/relwithdebug.mk @@ -0,0 +1,14 @@ +CFLAGS := -O3 -g +ifndef TRACY_NO_LTO +CFLAGS += -flto +endif +DEFINES := -DNDEBUG +BUILD := release-with-debug + +include ../../../common/unix-debug.mk + +ifeq ($(LEGACY),1) + include legacy.mk +else + include build.mk +endif