Skip to content

Commit

Permalink
Add arm cpu constraint to the mock Android platform.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 359274978
  • Loading branch information
katre authored and copybara-github committed Feb 24, 2021
1 parent b243584 commit 31d160a
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,8 @@ public void setupMockClient(MockToolsConfig config, List<String> workspaceConten
" name = 'android',",
" parents = ['" + TestConstants.PLATFORM_PACKAGE_ROOT + ":default_target'],",
" constraint_values = [",
" '" + TestConstants.PLATFORM_PACKAGE_ROOT + ":android',",
" '" + TestConstants.CONSTRAINTS_PACKAGE_ROOT + "os:android',",
" '" + TestConstants.CONSTRAINTS_PACKAGE_ROOT + "cpu:arm',",
" ],",
")");

Expand Down Expand Up @@ -389,7 +390,7 @@ private ImmutableList<String> createAndroidBuildContents() {
" toolchain = ':sdk',",
" toolchain_type = ':sdk_toolchain_type',",
" target_compatible_with = [",
" '@bazel_tools//platforms:android',",
" '" + TestConstants.CONSTRAINTS_PACKAGE_ROOT + "os:android',",
" ],",
")",
"android_sdk(",
Expand Down

0 comments on commit 31d160a

Please sign in to comment.