Skip to content

Commit

Permalink
Fix tch build issue from the root (tracel-ai#180) (tracel-ai#189)
Browse files Browse the repository at this point in the history
Moved .cargo/config.toml to the root so that the project can be built from the root and burn-tch as well.
  • Loading branch information
antimora authored Mar 1, 2023
1 parent e6e7f4d commit 30f6a30
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ Cargo.lock
# These are backup files generated by rustfmt
**/*.rs.bk
.DS_Store
burn-tch/.cargo/config.toml
.cargo/config.toml
4 changes: 2 additions & 2 deletions scripts/fix-tch-build-arm64.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
till tch-rs starts using Torch 2.0 libraries.
This script installs torch via pip3 and creates environment variables in
burn-tch/.cargo/config.toml for tch-rs to link cc libs properly.
.cargo/config.toml for tch-rs to link cc libs properly.
"""
Expand All @@ -27,7 +27,7 @@ def update_toml_config():
import tomli_w

cargo_cfg_dir = pathlib.Path(__file__).parent.parent.joinpath(
"burn-tch/.cargo").resolve()
".cargo").resolve()
cargo_cfg_dir.exists()
if not cargo_cfg_dir.exists():
os.makedirs(cargo_cfg_dir)
Expand Down

0 comments on commit 30f6a30

Please sign in to comment.