Skip to content

Commit a798f29

Browse files
authored
Bump to latest Mojo (#107)
Removes the MLRT bindings and NVPTX. Plus fixes up some warnings. Disables two tests that no longer work, but will eventually be re-enabled when Mojo's import logic supports it again.
1 parent 47643a3 commit a798f29

6 files changed

Lines changed: 12 additions & 18 deletions

File tree

‎mojo/extensions.bzl‎

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,13 @@ load("//mojo:mojo_host_platform.bzl", "mojo_host_platform")
44
load("//mojo/private:mojo_gpu_toolchains_repository.bzl", "mojo_gpu_toolchains_repository")
55

66
_PLATFORMS = ["linux_aarch64", "linux_x86_64", "macos_arm64"]
7-
_DEFAULT_VERSION = "1.0.0b3.dev2026080206"
7+
_DEFAULT_VERSION = "1.1.0.dev2026080506"
88
_KNOWN_SHAS = {
9-
"1.0.0b3.dev2026080206": {
10-
"linux_aarch64": "42e2e9c06c91b962e1ac66155a2033a1148bcbde6417e9ea8561b59cbae8de5b",
11-
"linux_x86_64": "b40788e38d4ccf1e931cd77f5bf41c7ba15b9ec3f35556b2e69a1eb09c7c359d",
12-
"macos_arm64": "0b48f1f3d7face114b141792c5450ffb02bdd37955837a64e4f11b89cf4d88b5",
13-
"mojo_compiler_mojo_libs": "481e6c48cfa0f4c0af53f57e450909f198ae1c54d0f3f5b7c29b0c707c6b26a9",
14-
},
15-
"1.0.0b3.dev2026072006": {
16-
"linux_aarch64": "63ad1c8fe113abc6a617ecadc76d42a5cbcabe19a6ef01c90b5cbc4281b118e2",
17-
"linux_x86_64": "72c810694ebcc514a363857e3d8f07828be994cf26a9317b50839a3f09c45fa3",
18-
"macos_arm64": "f58003493298e4427bf217c26274649f0973b3fafe379c9d319e59231066fff2",
19-
"mojo_compiler_mojo_libs": "27f7acea73231e93f4e9b4485d33059343d357c552b9828f2a4e2575018742a5",
9+
"1.1.0.dev2026080506": {
10+
"linux_aarch64": "d5715d4c2f13741081ff66685efde64f0a9cd8ffaeadfedf9a69f15864c43959",
11+
"linux_x86_64": "6fe58f92ab6e09ad07a82b88849d439811a309c7f362ff5eaa513b288aa09e8d",
12+
"macos_arm64": "8b0a34dc6fcebf85918649fe3f8910a8d41f297d55b13f824351c53efe72ef75",
13+
"mojo_compiler_mojo_libs": "eb5e1cc348ac51110bf2b28f66e1cf1c764204bc80540ff2b6edd2b69adbeab3",
2014
},
2115
}
2216
_PLATFORM_MAPPINGS = {

‎mojo/private/toolchain.BUILD‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,11 @@ _INTERNAL_LIBRARIES = [
1111
for library in glob(
1212
[
1313
# Globbed to allow .so or .dylib
14-
"lib/libAsyncRTMojoBindings.*",
1514
"lib/libAsyncRTRuntimeGlobals.*",
1615
"lib/libKGENCompilerRTShared.*",
1716
"lib/libMSupportGlobals.*",
1817
],
1918
allow_empty = False,
20-
) + glob(
21-
["lib/libNVPTX.so"], # buildifier: disable=constant-glob
22-
allow_empty = True,
2319
)
2420
]
2521

‎tests/nested/BUILD.bazel‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ load("//mojo:mojo_test.bzl", "mojo_test")
33
mojo_test(
44
name = "main",
55
srcs = ["main.mojo"],
6+
# TODO: Mojo doesn't officially support this yet, re-enable when it does
7+
tags = ["manual"],
68
visibility = ["//tests:__subpackages__"],
79
deps = ["//tests/nested/outer:inner"],
810
)

‎tests/nested/outer/BUILD.bazel‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,7 @@ mojo_library(
66
"__init__.mojo",
77
],
88
import_path = "..",
9+
# TODO: Mojo doesn't officially support this yet, re-enable when it does
10+
tags = ["manual"],
911
visibility = ["//tests:__subpackages__"],
1012
)

‎tests/python/basic_python_test.mojo‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ from std.os import getenv
33
from std.testing import assert_true
44

55
def main() raises:
6-
sys = Python.import_module("sys")
6+
var sys = Python.import_module("sys")
77
print("Python executable:", sys.executable)
88
print("Python version:", sys.version)
99
assert_true(sys.version.startswith(getenv("EXPECTED_PYTHON_VERSION")))

‎tests/shared_library_test.mojo‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ from std.testing import assert_equal
33

44
def main() raises:
55
print("Calling external function...")
6-
result = external_call["foo", c_int]()
6+
var result = external_call["foo", c_int]()
77
print("Result from external function:", result)
88
assert_equal(result, 42)

0 commit comments

Comments
 (0)