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
-
With the release of
@platforms
, I can change targets ofcc_library
easily toarm64
by defining a set of constraints and usingselect()
on those values. However, since Apple rules doesn't support@platforms
and instead pass the config to C build configuration through--cpu
and--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_library
andobjc_library
? For example, if I want to build an XCFramework targetingx86_64
andarm64
that depends oncc_library
target, how does the C target know which target to build and which toolchain to use under the absense of@platforms
.cc_library
rule that usesselect()
on@platforms
(eg. emiting TARGET_IOS local defines if the target is@platforms//os:ios
) and have aapple_static_xcframework
rules 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()
oncpu
for compatibility with Apple rules?--cpu
, or--platforms
?@platforms
any time soon? I would be happy to help under some guidance.Beta Was this translation helpful? Give feedback.
All reactions