From 593e30f9b31eebe38820ec6dce8028d237638d67 Mon Sep 17 00:00:00 2001
From: Giuseppe Carboni <giuseppecarboni89@live.com>
Date: Tue, 22 Apr 2025 14:08:00 +0200
Subject: [PATCH] Fix #908, set flag to speed up AS GUIs build (#930)

Every time we try to build a AS GUI, the process tries to build the objects with the flag -fvar-tracking-assignments enabled by default. The build process with this flag is never successful and the process prints a warning similar to:
"variable tracking size limit exceeded with -fvar-tracking-assignments, retrying without"
By disabling the flag in the makefile, we skip the first, always unsuccessful, attempt, saving a lot of time.
---
 Medicina/Clients/MedicinaActiveSurfaceGUIClient/src/Makefile | 2 +-
 Noto/Clients/NotoActiveSurfaceGUIClient/src/Makefile         | 2 +-
 SRT/Clients/SRTActiveSurfaceGUIClient/src/Makefile           | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/Medicina/Clients/MedicinaActiveSurfaceGUIClient/src/Makefile b/Medicina/Clients/MedicinaActiveSurfaceGUIClient/src/Makefile
index d62439c8d..12ad305d6 100644
--- a/Medicina/Clients/MedicinaActiveSurfaceGUIClient/src/Makefile
+++ b/Medicina/Clients/MedicinaActiveSurfaceGUIClient/src/Makefile
@@ -18,7 +18,7 @@
 
 #
 # user definable C-compilation flags
-USER_CFLAGS = -DQT_THREAD_SUPPORT
+USER_CFLAGS = -DQT_THREAD_SUPPORT -fno-var-tracking-assignments
 
 #
 # additional include and library search paths
diff --git a/Noto/Clients/NotoActiveSurfaceGUIClient/src/Makefile b/Noto/Clients/NotoActiveSurfaceGUIClient/src/Makefile
index ef33c180c..08a187356 100644
--- a/Noto/Clients/NotoActiveSurfaceGUIClient/src/Makefile
+++ b/Noto/Clients/NotoActiveSurfaceGUIClient/src/Makefile
@@ -18,7 +18,7 @@
 
 #
 # user definable C-compilation flags
-USER_CFLAGS = -DQT_THREAD_SUPPORT
+USER_CFLAGS = -DQT_THREAD_SUPPORT -fno-var-tracking-assignments
 
 #
 # additional include and library search paths
diff --git a/SRT/Clients/SRTActiveSurfaceGUIClient/src/Makefile b/SRT/Clients/SRTActiveSurfaceGUIClient/src/Makefile
index 3cddab74f..dabed8d0a 100644
--- a/SRT/Clients/SRTActiveSurfaceGUIClient/src/Makefile
+++ b/SRT/Clients/SRTActiveSurfaceGUIClient/src/Makefile
@@ -18,7 +18,7 @@
 
 #
 # user definable C-compilation flags
-USER_CFLAGS = -DQT_THREAD_SUPPORT
+USER_CFLAGS = -DQT_THREAD_SUPPORT -fno-var-tracking-assignments
 
 #
 # additional include and library search paths
-- 
GitLab