似乎有一个Make Env变量workspace
,可以保留原始Bazel工作区的路径值。
,但我不确定如何将此变量传递给Bazel规则。
exports_files([
"configure.py",
])
py_binary(
name = "configure",
srcs = [
"configure.py",
],
data = [
"//tensorflow/tools/git:gen_git_source.py",
"//tools",
],
args = [
# "--workspace=" + $(location workspace), # the path to the repository
"--tf_workspace=$(location workspace)" , # the path to the
]
)
不幸的是,巴泽尔不支持$(location workspace)
也不支持$(workspace)
。
是什么让您认为它确实如此?