Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into fcitx
Browse files Browse the repository at this point in the history
  • Loading branch information
Fcitx Bot committed Dec 24, 2024
2 parents 56fbb9c + 990c417 commit 2358d1e
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 2 deletions.
12 changes: 11 additions & 1 deletion src/MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,17 @@ bazel_dep(
)
single_version_override(
module_name = "rules_android_ndk",
patches = ["bazel/rules_android_ndk.patch"],
# Bazel's built-in patch engine cannot deal with a patch file that affects
# multiple files. This is why we have two separate patch files here.
# https://github.com/bazelbuild/bazel/issues/10267
patches = [
# Look like this should have been included in the following PR.
# https://github.com/bazelbuild/rules_android_ndk/pull/37
"bazel/rules_android_ndk.allow_empty_glob.patch",
# Might be removed after the folloing PR.
# https://github.com/bazelbuild/rules_android_ndk/pull/63
"bazel/rules_android_ndk.patch",
],
version = "0.1.2",
)

Expand Down
4 changes: 3 additions & 1 deletion src/bazel/BUILD.qt_win.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ cc_library(
],
}),
hdrs = glob([
"include",
"include/QtCore/*",
"include/QtGui/*",
"include/QtWidgets/*",
]),
includes = [
"include",
Expand Down
11 changes: 11 additions & 0 deletions src/bazel/rules_android_ndk.allow_empty_glob.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--- BUILD.ndk_clang.tpl
+++ BUILD.ndk_clang.tpl
@@ -49,7 +49,7 @@
"bin/*",
"lib64/**/*",
"lib/**/*",
- ]),
+ ], allow_empty = True),
)

filegroup(

0 comments on commit 2358d1e

Please sign in to comment.