如何将工作空间路径传递给bazel规则

时间:2017-11-25 19:55:35

标签: bazel

似乎有一个make env变量workspace keeps the path value of the original bazel workspace

但我不知道如何将此变量传递给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 
    ]
)

1 个答案:

答案 0 :(得分:0)

不幸的是,Bazel既不支持AudioRecord.STATE_INITIALIZED也不支持$(location workspace)

是什么让你认为它呢?