Skip to content

Commit c579496

Browse files
fix: windows stdin rvalue, xmake run args, bump breeze-js
1 parent ba0183e commit c579496

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ jobs:
110110

111111
- name: Test
112112
if: ${{ !matrix.android }}
113-
run: xmake run chromatic-test -- --no-signal-tests
113+
run: xmake run chromatic-test --no-signal-tests
114114

115115
- name: Prepare artifacts
116116
shell: bash

deps/breeze-js.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
local BREEZE_JS_VERSION = "2026.03.30+3"
2-
local BREEZE_JS_HASH = "1769600400b6f27a9c2ceff7c9689601879b7e0c"
1+
local BREEZE_JS_VERSION = "2026.03.30+4"
2+
local BREEZE_JS_HASH = "6483f9d678b230aed508ea5eb66d4306c03dfe15"
33
local BREEZE_JS_SOURCEDIR = path.join(os.scriptdir(), "../", "../GitHub/breeze-js")
44
local USE_LOCAL = os.exists(BREEZE_JS_SOURCEDIR)
55

src/core/bindings/native_cmodule.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,9 @@ static void injectRuntimeSymbols(TCCState *s,
8181
injected.insert("____stdoutp");
8282
injected.insert("___stderrp");
8383
injected.insert("____stderrp");
84-
#elif defined(__ANDROID__)
85-
// Android Bionic: stdin/stdout/stderr are macros expanding to rvalues.
86-
// Use stable pointers from the C runtime instead.
84+
#elif defined(__ANDROID__) || defined(_WIN32)
85+
// Android Bionic and Windows UCRT: stdin/stdout/stderr expand to rvalues.
86+
// Capture them into static lvalues so we can take their address.
8787
{
8888
static FILE *s_stdin = stdin;
8989
static FILE *s_stdout = stdout;

0 commit comments

Comments
 (0)