Skip to content

Commit 33a532c

Browse files
committed
Make native-image build output go through mx logging infrastructure.
1 parent 3ee4704 commit 33a532c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

sdk/mx.sdk/mx_sdk_vm_impl.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1238,8 +1238,8 @@ def native_image(self, build_args, output_file, out=None, err=None):
12381238
])
12391239

12401240
# Prefix native-image builds that print straight to stdout or stderr with [<output_filename>:<pid>]
1241-
out = out or mx.PrefixCapture(sys.stdout.write, basename(output_file))
1242-
err = err or mx.PrefixCapture(sys.stderr.write, basename(output_file))
1241+
out = out or mx.PrefixCapture(lambda l: mx.log(l, end=''), basename(output_file))
1242+
err = err or mx.PrefixCapture(lambda l: mx.log(l, end='', file=sys.stderr), basename(output_file))
12431243

12441244
mx.run(native_image_command, nonZeroIsFatal=True, out=out, err=err)
12451245

sdk/mx.sdk/suite.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
# SOFTWARE.
4040
#
4141
suite = {
42-
"mxversion": "7.33.1",
42+
"mxversion": "7.36.0",
4343
"name" : "sdk",
4444
"version" : "24.2.0",
4545
"release" : False,

0 commit comments

Comments
 (0)