1
似乎有一個make env變量workspace
即keeps the path value of the original bazel 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
]
)
你想通過將工作區名稱傳遞給二進制來解決什麼問題? –