-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ability to test 3p deps checked out as local repos
fix
- Loading branch information
1 parent
d837214
commit 7a20a4b
Showing
4 changed files
with
115 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Licensed under the Apache License v2.0 with LLVM Exceptions. | ||
# See https://llvm.org/LICENSE.txt for license information. | ||
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | ||
# Also available under a BSD-style license. See LICENSE. | ||
|
||
third_party/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,10 @@ | ||
/bazel-bin | ||
/bazel-out | ||
/bazel-mlir-tcp | ||
/bazel-testlogs | ||
# Licensed under the Apache License v2.0 with LLVM Exceptions. | ||
# See https://llvm.org/LICENSE.txt for license information. | ||
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | ||
# Also available under a BSD-style license. See LICENSE. | ||
|
||
bazel-bin | ||
bazel-out | ||
bazel-mlir-tcp | ||
bazel-testlogs | ||
third_party/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# Licensed under the Apache License v2.0 with LLVM Exceptions. | ||
# See https://llvm.org/LICENSE.txt for license information. | ||
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | ||
# Also available under a BSD-style license. See LICENSE. | ||
|
||
# Modify this file to get bazel to use a local source checkout for the 3p deps | ||
# (e.g. to quickly test out local changes). | ||
# | ||
# To avoid accidentally checking in modifications to this file, you can ask git | ||
# to ignore changes to this file by running the following: | ||
# | ||
# $ git update-index --assume-unchanged local_repos.bzl | ||
|
||
def use_local_llvm_repo(): | ||
# Change this to return True to have mlir-tcp use the source tree at | ||
# `local_llvm_repo_path()` | ||
return False | ||
|
||
def use_local_torch_mlir_repo(): | ||
# Change this to return True to have mlir-tcp use the source tree at | ||
# `local_torch_mlir_repo_path()` | ||
return False | ||
|
||
def use_local_stablehlo_repo(): | ||
# Change this to return True to have mlir-tcp use the source tree at | ||
# `local_stablehlo_repo_path()` | ||
return False | ||
|
||
def local_llvm_repo_path(): | ||
return "./third_party/llvm-project" | ||
|
||
def local_torch_mlir_repo_path(): | ||
return "./third_party/torch-mlir" | ||
|
||
def local_stablehlo_repo_path(): | ||
return "./third_party/stablehlo" |