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 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"