Skip to content

Commit

Permalink
fix meson tests for macOS CI (#1260)
Browse files Browse the repository at this point in the history
  • Loading branch information
jsun-splunk authored Aug 14, 2024
1 parent 26536e4 commit 4d2cb3e
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 8 deletions.
6 changes: 2 additions & 4 deletions examples/third_party/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,7 @@ test_suite(
"//cares:test_c_ares",
"//cares:test_c_ares_ios",
"//curl:curl_test_suite",
# Fails due to linker error in ffi (https://github.com/mesonbuild/meson/issues/12282)
# "//glib:glib_build_test",
"//glib:glib_build_test",
"//gn:gn_launch_test",
"//gperftools:test",
"//iconv:iconv_macos_build_test",
Expand All @@ -96,8 +95,7 @@ test_suite(
"//libpng:test_libpng",
"//libssh2:libssh2_build_test",
"//log4cxx:log4cxx_build_test",
# Fails due to linker argument error (https://github.com/mesonbuild/meson/issues/12282)
# "//mesa:mesa_build_test",
"//mesa:mesa_build_test",
"//openssl:openssl_test_suite",
"//pcre:pcre_build_test",
"//python:python_tests",
Expand Down
6 changes: 3 additions & 3 deletions examples/third_party/glib/glib_repositories.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ def glib_repositories():
http_archive,
name = "glib",
build_file = Label("//glib:BUILD.glib.bazel"),
strip_prefix = "glib-2.75.0",
sha256 = "6dde8e55cc4a2c83d96797120b08bcffb5f645b2e212164ae22d63c40e0e6360",
url = "https://download.gnome.org/sources/glib/2.75/glib-2.75.0.tar.xz",
strip_prefix = "glib-2.77.0",
sha256 = "1897fd8ad4ebb523c32fabe7508c3b0b039c089661ae1e7917df0956a320ac4d",
url = "https://download.gnome.org/sources/glib/2.77/glib-2.77.0.tar.xz",
)
maybe(
http_archive,
Expand Down
2 changes: 1 addition & 1 deletion foreign_cc/repositories.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def rules_foreign_cc_dependencies(
cmake_version = "3.23.2",
make_version = "4.4.1",
ninja_version = "1.12.1",
meson_version = "1.1.1",
meson_version = "1.5.1",
pkgconfig_version = "0.29.2",
register_preinstalled_tools = True,
register_built_tools = True,
Expand Down
13 changes: 13 additions & 0 deletions toolchains/built_toolchains.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,19 @@ def _meson_toolchain(version, register_toolchains):
native.register_toolchains(
"@rules_foreign_cc//toolchains:built_meson_toolchain",
)
if version == "1.5.1":
maybe(
http_archive,
name = "meson_src",
build_file_content = _MESON_BUILD_FILE_CONTENT,
sha256 = "567e533adf255de73a2de35049b99923caf872a455af9ce03e01077e0d384bed",
strip_prefix = "meson-1.5.1",
urls = [
"https://mirror.bazel.build/github.com/mesonbuild/meson/releases/download/1.5.1/meson-1.5.1.tar.gz",
"https://github.com/mesonbuild/meson/releases/download/1.5.1/meson-1.5.1.tar.gz",
],
)
return
if version == "1.1.1":
maybe(
http_archive,
Expand Down

0 comments on commit 4d2cb3e

Please sign in to comment.