Skip to content

FinceptTerminal is a modern finance application offering advanced market analytics, investment research, and economic data tools, designed for interactive exploration and data-driven decision-making in a user-friendly environment.

changes

tilakpatel2239fe89e66313
diff --git a/fincept-qt/CMakeLists.txt b/fincept-qt/CMakeLists.txt
index 9e40113fc..3602cf3b7 100644
--- a/fincept-qt/CMakeLists.txt
+++ b/fincept-qt/CMakeLists.txt
@@ -164,9 +164,21 @@ endif()
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
# ── Build performance ─────────────────────────────────────────────────────────
-# Unity build for infrastructure layers (safe — no local symbol conflicts)
-# Screens are excluded below via SKIP_UNITY_BUILD_INCLUSION (too many local statics/functions)
-set(CMAKE_UNITY_BUILD ON)
+# Developer iteration build. Set ON by the `win-dev` preset. Flips unity build
+# OFF (so a single-file edit recompiles only that file, not its 20-file bundle)
+# and enables /DEBUG:FASTLINK below for much faster incremental links. Release
+# builds (Release/linux/macos presets) leave this OFF for the smaller, faster
+# binary that unity + full PDB linking produce.
+option(FINCEPT_DEV_BUILD "Developer iteration build: unity OFF + FASTLINK for fast single-file rebuilds" OFF)
+
+# Unity build for infrastructure layers (safe — no local symbol conflicts).
+# Screens are excluded below via SKIP_UNITY_BUILD_INCLUSION (too many local statics/functions).
+# Disabled in dev builds so a one-line edit only recompiles that translation unit.
+if(FINCEPT_DEV_BUILD)
+ set(CMAKE_UNITY_BUILD OFF)
+else()
+ set(CMAKE_UNITY_BUILD ON)
+endif()
set(CMAKE_UNITY_BUILD_BATCH_SIZE 20)
# FetchContent: default to skipping the update step after first download to cut
@@ -230,6 +242,14 @@ if(MSVC)
# /INCREMENTAL:NO; override here.
add_link_options($<$<CONFIG:Release>:/INCREMENTAL>)
add_link_options($<$<CONFIG:RelWithDebInfo>:/INCREMENTAL>)
+ # Dev iteration: /DEBUG:FASTLINK keeps debug info in the .obj files and
+ # builds a thin PDB that references them rather than copying it all in.
+ # This is the single biggest lever on incremental link wall-clock for a
+ # 400+ object target. The objects must stay on disk (fine for a dev tree).
+ # Release builds keep the default full PDB (portable, no obj dependency).
+ if(FINCEPT_DEV_BUILD)
+ add_link_options($<$<CONFIG:RelWithDebInfo>:/DEBUG:FASTLINK>)
+ endif()
# Replace any /INCREMENTAL:NO that CMake's defaults inserted.
foreach(flag_var
CMAKE_EXE_LINKER_FLAGS_RELEASE
diff --git a/fincept-qt/CMakePresets.json b/fincept-qt/CMakePresets.json
index 35461768e..d39dc2b59 100644
--- a/fincept-qt/CMakePresets.json
+++ b/fincept-qt/CMakePresets.json
@@ -16,13 +16,14 @@
{
"name": "win-dev",
"displayName": "Windows Dev (fast incremental)",
- "description": "Dev build — unity build OFF for fast single-file rebuilds (~10s vs ~2min).",
+ "description": "Dev build — unity OFF + /DEBUG:FASTLINK incremental linking + PCH for fast single-file rebuilds (~10s vs ~2min). FINCEPT_DEV_BUILD drives the dev-only tweaks in CMakeLists.txt.",
"inherits": "base",
"condition": { "type": "equals", "lhs": "${hostSystemName}", "rhs": "Windows" },
"architecture": { "value": "x64", "strategy": "external" },
"cacheVariables": {
"CMAKE_BUILD_TYPE": "RelWithDebInfo",
- "CMAKE_UNITY_BUILD": "OFF"
+ "CMAKE_UNITY_BUILD": "OFF",
+ "FINCEPT_DEV_BUILD": "ON"
}
},
diff --git a/fincept-qt/src/core/panel/PanelHandle.cpp b/fincept-qt/src/core/panel/PanelHandle.cpp
index df61d0aca..88ce8ea0a 100644
--- a/fincept-qt/src/core/panel/PanelHandle.cpp
+++ b/fincept-qt/src/core/panel/PanelHandle.cpp
@@ -39,6 +39,10 @@ void PanelHandle::set_state(State s) {
emit state_changed(s);
}
+ads::CDockWidget* PanelHandle::dock_widget() const {
+ return dock_widget_.data();
+}
+
void PanelHandle::set_dock_widget(ads::CDockWidget* dw) {
dock_widget_ = dw;
}
diff --git a/fincept-qt/src/core/panel/PanelHandle.h b/fincept-qt/src/core/panel/PanelHandle.h
index 11028f981..8417615ae 100644
--- a/fincept-qt/src/core/panel/PanelHandle.h
+++ b/fincept-qt/src/core/panel/PanelHandle.h
@@ -73,7 +73,10 @@ class PanelHandle : public QObject {
int last_state_version() const { return last_state_version_; }
/// Live dock widget pointer, or nullptr while Suspended/Closed.
- ads::CDockWidget* dock_widget() const { return dock_widget_.data(); }
+ /// Defined out-of-line in the .cpp: QPointer::data() static_casts to
+ /// CDockWidget*, which needs the complete ADS type (only the forward
+ /// declaration is visible here to keep this header lightweight).
+ ads::CDockWidget* dock_widget() const;
/// Render-time samples (most-recent first). Phase 8 surfaces these in
/// the debug overlay; Phase 4 stores them so the pipeline is in place.