From df2a2e18e6d81c6c191be61dc579a5d58ec6ef5b Mon Sep 17 00:00:00 2001 From: Chris Speciale <26172437+dimensionscape@users.noreply.github.com> Date: Tue, 1 Dec 2026 12:28:51 -0500 Subject: [PATCH] Run CrossByte's StdOverrides macro in the downstream suites CrossByte 1.0.2 refuses a build that adds it with -cp src and leaves out crossbyte._internal.macro.StdOverrides.use(), which puts its haxe.Timer ahead of the standard library's. Both suites stopped at that check from 2026-11-26 on, before any test ran. They pass the macro now, as CrossByte's own ci/*.hxml do. --- .github/workflows/downstream.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/downstream.yml b/.github/workflows/downstream.yml index 08d984a45..805568d1f 100644 --- a/.github/workflows/downstream.yml +++ b/.github/workflows/downstream.yml @@ -49,6 +49,8 @@ jobs: haxelib dev crossbyte "$PWD/crossbyte" # Run from CrossByte's root: some tests look for src/ above the working directory. + # Both builds add CrossByte with -cp src, so they run its StdOverrides macro, as its + # own ci/*.hxml do: since 1.0.2 crossbyte.core.CrossByte refuses a build without it. # KNOWN_FAILURES are failures of CrossByte's own tests, not of this runtime: # the step passes with a warning when they are the only ones. Take each out # once CrossByte's test is fixed. @@ -64,7 +66,8 @@ jobs: env: KNOWN_FAILURES: testASmallInt64IsAnInt64WhenWrapped run: | - haxe -cp src -lib emitter -cp tests -lib utest -D HXCPP_M64 -main NativeSmokeMain --cpp ../cb/native \ + haxe -cp src --macro "crossbyte._internal.macro.StdOverrides.use()" -lib emitter -cp tests -lib utest \ + -D HXCPP_M64 -main NativeSmokeMain --cpp ../cb/native \ --macro "crossbyte._internal.macro.HostPlatform.define()" --macro "crossbyte.test.SuiteCoverage.check()" bash ../test/downstream/run-suite.sh ../cb/native.log timeout 1200 ../cb/native/NativeSmokeMain @@ -73,7 +76,8 @@ jobs: shell: bash working-directory: crossbyte run: | - haxe -cp src -lib emitter -cp tests -D HXCPP_M64 -main StressMain --cpp ../cb/stress + haxe -cp src --macro "crossbyte._internal.macro.StdOverrides.use()" -lib emitter -cp tests \ + -D HXCPP_M64 -main StressMain --cpp ../cb/stress timeout 1200 ../cb/stress/StressMain apps: