diff options
author | Christian Sigg <csigg@google.com> | 2021-08-18 09:14:42 +0200 |
---|---|---|
committer | Christian Sigg <csigg@google.com> | 2021-08-19 09:37:26 +0200 |
commit | 81d5412439efd0860c0a8dd51b831204f118d485 (patch) | |
tree | 25b224a2d84c20a90fa045c79303c7ee7ffe9be8 /utils/bazel/examples | |
parent | 96fbd5cd5e442bd01172d0d4491a2ef19876621f (diff) | |
download | llvm-81d5412439efd0860c0a8dd51b831204f118d485.zip llvm-81d5412439efd0860c0a8dd51b831204f118d485.tar.gz llvm-81d5412439efd0860c0a8dd51b831204f118d485.tar.bz2 |
Simplify setting up LLVM as bazel external repo
Only require one intermediate repository instead of two.
Fewer parameters in llvm_config.
Second attempt of https://reviews.llvm.org/D107714, this time also updating `third_party_build` and `deps_impl` paths.
Reviewed By: GMNGeoffrey
Differential Revision: https://reviews.llvm.org/D108274
Diffstat (limited to 'utils/bazel/examples')
-rw-r--r-- | utils/bazel/examples/submodule/WORKSPACE | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/utils/bazel/examples/submodule/WORKSPACE b/utils/bazel/examples/submodule/WORKSPACE index c83ab97..e702caa 100644 --- a/utils/bazel/examples/submodule/WORKSPACE +++ b/utils/bazel/examples/submodule/WORKSPACE @@ -17,21 +17,16 @@ http_archive( ], ) -# Or wherever your submodule is located. -SUBMODULE_PATH = "third_party/llvm-project" - -local_repository( - name = "llvm-bazel", - path = SUBMODULE_PATH + "/utils/bazel", +new_local_repository( + name = "llvm-raw", + build_file_content = "# empty", + # Or wherever your submodule is located. + path = "third_party/llvm-project", ) -load("@llvm-bazel//:configure.bzl", "llvm_configure", "llvm_disable_optional_support_deps") +load("@llvm-raw//utils/bazel:configure.bzl", "llvm_configure", "llvm_disable_optional_support_deps") -llvm_configure( - name = "llvm-project", - src_path = SUBMODULE_PATH, - src_workspace = "@submodule_example//:WORKSPACE", -) +llvm_configure(name = "llvm-project") # Disables optional dependencies for Support like zlib and terminfo. You may # instead want to configure them using the macros in the corresponding bzl |