Replies: 1 comment
-
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
With the release of
@platforms, I can change targets ofcc_libraryeasily toarm64by defining a set of constraints and usingselect()on those values. However, since Apple rules doesn't support@platformsand instead pass the config to C build configuration through--cpuand--crosstool_top. Being new to bazel, I am confused on how things operate over the boundary. Would be very helpful if someone can answer the following questions for me:cc_libraryandobjc_library? For example, if I want to build an XCFramework targetingx86_64andarm64that depends oncc_librarytarget, how does the C target know which target to build and which toolchain to use under the absense of@platforms.cc_libraryrule that usesselect()on@platforms(eg. emiting TARGET_IOS local defines if the target is@platforms//os:ios) and have aapple_static_xcframeworkrules depends on it, what would be the result of the select? From my understanding, it would resolve to default condition, right? If that is the case, should I instead makeselect()oncpufor compatibility with Apple rules?--cpu, or--platforms?@platformsany time soon? I would be happy to help under some guidance.Beta Was this translation helpful? Give feedback.
All reactions