diff options
author | Kristina Chodorow <kchodorow@google.com> | 2016-10-10 17:21:24 +0000 |
---|---|---|
committer | Yue Gan <yueg@google.com> | 2016-10-11 08:44:32 +0000 |
commit | ba41c2df007f4d81e0987ae76824c855e5f4c437 (patch) | |
tree | 2762a4c96e887d753e2ff564bec6e5e545faad03 /tools | |
parent | 3e5ac9db368b6aee2e9dbe4be0aca16abeb24645 (diff) |
Add bin_dir and genfiles_dir to ctx
--
MOS_MIGRATED_REVID=135689610
Diffstat (limited to 'tools')
-rw-r--r-- | tools/build_rules/java_rules_skylark.bzl | 3 | ||||
-rw-r--r-- | tools/build_rules/py_rules.bzl | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/tools/build_rules/java_rules_skylark.bzl b/tools/build_rules/java_rules_skylark.bzl index 07539f5c1c..b37a857b2c 100644 --- a/tools/build_rules/java_rules_skylark.bzl +++ b/tools/build_rules/java_rules_skylark.bzl @@ -39,8 +39,7 @@ def java_library_impl(ctx): javalist_output = class_jar.path + ".build_java_list" sources = ctx.files.srcs - sources_param_file = ctx.new_file( - ctx.configuration.bin_dir, class_jar, "-2.params") + sources_param_file = ctx.new_file(ctx.bin_dir, class_jar, "-2.params") ctx.file_action( output = sources_param_file, content = cmd_helper.join_paths("\n", set(sources)), diff --git a/tools/build_rules/py_rules.bzl b/tools/build_rules/py_rules.bzl index cdb2d9b6ba..bd51780dff 100644 --- a/tools/build_rules/py_rules.bzl +++ b/tools/build_rules/py_rules.bzl @@ -38,8 +38,7 @@ def py_binary_impl(ctx): transitive_sources = collect_transitive_sources(ctx) deploy_zip = ctx.outputs.deploy_zip - deploy_zip_nomain = ctx.new_file( - ctx.configuration.bin_dir, deploy_zip, ".nomain.zip") + deploy_zip_nomain = ctx.new_file(ctx.bin_dir, deploy_zip, ".nomain.zip") # This is not very scalable, because we just construct a huge string instead # of using a nested set. We need to do it this way because Skylark currently |