From b0537df0d22f640df3adf3035aa913cc7b5be232 Mon Sep 17 00:00:00 2001 From: Tobiasz Laskowski Date: Sun, 1 Nov 2026 10:53:36 +0000 Subject: [PATCH 1/2] Fix TelemetryTracy pch include error on gcc When compiling TelemetryTracy.cpp, it includes hxcpp.h, and then it includes TelemetryTracy.h which also includes hxcpp.h. With precompiled headers turned on, gcc gives an error when including hxcpp.h a second time. We can avoid it by guarding the hxcpp.h include. --- include/hx/TelemetryTracy.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/hx/TelemetryTracy.h b/include/hx/TelemetryTracy.h index 516bb73aa..03679f48a 100644 --- a/include/hx/TelemetryTracy.h +++ b/include/hx/TelemetryTracy.h @@ -6,7 +6,9 @@ #endif #define TRACY_ENABLE -#include +#ifndef HXCPP_H + #include +#endif #include "../../project/thirdparty/tracy-0.13.1/tracy/TracyC.h" #include "../../project/thirdparty/tracy-0.13.1/tracy/Tracy.hpp" From 2208fc0b5341e97ed5c33d8aaa97683178f2cf2e Mon Sep 17 00:00:00 2001 From: Tobiasz Laskowski Date: Sun, 1 Nov 2026 10:55:40 +0000 Subject: [PATCH 2/2] [ci] Add compilation check with HXCPP_TRACY This doesn't check functionality, but at least makes sure that HXCPP_TRACY builds can compile. Note, the binary this build produces doesn't actually run because __hxcpp_hxt_start_telemetry throws an unimplemented exception in TelemetryTracy. --- .github/workflows/test.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 0aa88197b..3a1079c99 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -120,6 +120,13 @@ jobs: haxe compile.hxml -D ${{ env.HXCPP_ARCH_FLAG }} bin/TestMain + - name: telemetry (tracy compile) + if: ${{ !cancelled() && steps.setup.outcome == 'success' }} + working-directory: test/telemetry + run: | + set -x + haxe compile.hxml -D HXCPP_TRACY -D HXCPP_STACK_LINE -D ${{ env.HXCPP_ARCH_FLAG }} + - name: debugger if: ${{ !cancelled() && steps.setup.outcome == 'success' }} working-directory: test/debugger