Skip to content

Commit

Permalink
fix bazel7 sim_arm64 link error, pass dynamic framework link info to …
Browse files Browse the repository at this point in the history
…bazel,with feature apple.arm64_simulator_use_device_deps enable
  • Loading branch information
xujiguang.kuper committed Sep 12, 2024
1 parent cf60105 commit 0ff4e54
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
10 changes: 10 additions & 0 deletions rules/import_middleman.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,16 @@ def _file_collector_rule_impl(ctx):
alwayslink = False,
)
for static_library in replaced_static_framework.replaced.values()
] + [
# Bazel7 should speficy dynamic library for link
cc_common.create_library_to_link(
actions = ctx.actions,
cc_toolchain = cc_toolchain,
feature_configuration = cc_features,
dynamic_library = dynamic_library,
alwayslink = False,
)
for dynamic_library in replaced_dynamic_framework.values()
]),
),
]),
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
@import FW;
@import OnlySources;
@import MobileFlow;

int main(int argc, char **argv) {
return UIApplicationMain(argc, argv, nil, nil);
Expand Down

0 comments on commit 0ff4e54

Please sign in to comment.