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