Repository navigation
jpeg.BUILD: Use --cpu instead of --android_cpu - #17508
Conversation
|
@gunan Can you take a look or reassign to others? |
|
Do we need to edit any existing android build configs? |
|
From https://github.com/tensorflow/tensorflow/search?utf8=%E2%9C%93&q=android_cpu&type= |
|
Looks good to me. Bazel's config_setting rules don't actually change the way things are built -- they're a way to trigger a conditional, which then can affect anything that pays attention to config rules, like bazel.rc or select() rules. AFAIK, we've always built by using --config= directly, so this change should be fine. |
|
Please merge this to other branches(r1.7, r1.6, r1.5) to fix #18450. |
|
While it will be useful, it is not a priority for us as the earlier releases are done, and users of those would be using tags mostly. Merging this to branches would not get the benefits if we merged this without a release. |
(DBX note: This cherry-pick from upstream fixes building TF on newer versions of Bazel.)
The missing tag was making the dependency violation presubmit check fail. Fixes #17508 PiperOrigin-RevId: 678087136
The missing tag was making the dependency violation presubmit check fail. Fixes #17508 PiperOrigin-RevId: 678100814
TF build is broken with Bazel@HEAD, see https://buildkite.com/bazel/bazel-with-downstream-projects-bazel/builds/141#ca77fce7-7ea1-4427-a49b-1ab1305f6bfb
Issue bazelbuild/bazel#4652
The reason is, we recently change default value of --android_cpu to
armeabi-v7a. bazelbuild/bazel@fc30733That results two config_setting enabled at the same time in jpeg.BUILD.
We should better use --cpu instead of --android_cpu to select for architecture.
@jart @gregestren
FYI, @buchgr