diff --git a/capture/build/unix/release.mk b/capture/build/unix/release.mk index e70f36d4..ccf07661 100644 --- a/capture/build/unix/release.mk +++ b/capture/build/unix/release.mk @@ -1,4 +1,7 @@ -CFLAGS := -O3 -flto +CFLAGS := -O3 +ifndef TRACY_NO_LTO +CFLAGS += -flto +endif DEFINES := -DNDEBUG BUILD := release diff --git a/csvexport/build/unix/release.mk b/csvexport/build/unix/release.mk index e70f36d4..ccf07661 100644 --- a/csvexport/build/unix/release.mk +++ b/csvexport/build/unix/release.mk @@ -1,4 +1,7 @@ -CFLAGS := -O3 -flto +CFLAGS := -O3 +ifndef TRACY_NO_LTO +CFLAGS += -flto +endif DEFINES := -DNDEBUG BUILD := release diff --git a/import-chrome/build/unix/release.mk b/import-chrome/build/unix/release.mk index e70f36d4..ccf07661 100644 --- a/import-chrome/build/unix/release.mk +++ b/import-chrome/build/unix/release.mk @@ -1,4 +1,7 @@ -CFLAGS := -O3 -flto +CFLAGS := -O3 +ifndef TRACY_NO_LTO +CFLAGS += -flto +endif DEFINES := -DNDEBUG BUILD := release diff --git a/profiler/build/unix/release.mk b/profiler/build/unix/release.mk index e70f36d4..ccf07661 100644 --- a/profiler/build/unix/release.mk +++ b/profiler/build/unix/release.mk @@ -1,4 +1,7 @@ -CFLAGS := -O3 -flto +CFLAGS := -O3 +ifndef TRACY_NO_LTO +CFLAGS += -flto +endif DEFINES := -DNDEBUG BUILD := release diff --git a/update/build/unix/release.mk b/update/build/unix/release.mk index e70f36d4..ccf07661 100644 --- a/update/build/unix/release.mk +++ b/update/build/unix/release.mk @@ -1,4 +1,7 @@ -CFLAGS := -O3 -flto +CFLAGS := -O3 +ifndef TRACY_NO_LTO +CFLAGS += -flto +endif DEFINES := -DNDEBUG BUILD := release