diff options
| author | Antoni Boucher <bouanto@zoho.com> | 2023-06-03 09:04:12 -0400 |
|---|---|---|
| committer | Antoni Boucher <bouanto@zoho.com> | 2023-06-11 11:41:14 -0400 |
| commit | c8376e4c78cfdc4d55b6c818fc888a6d62dc08fe (patch) | |
| tree | be060d95c1472c2b47faac5c6ef8b0211f2c0d7e | |
| parent | 8c2b14f7088c31c442f1ebc5c0ad7d5e22011963 (diff) | |
| download | rust-c8376e4c78cfdc4d55b6c818fc888a6d62dc08fe.tar.gz rust-c8376e4c78cfdc4d55b6c818fc888a6d62dc08fe.zip | |
Add usage of git subtree to readme
| -rw-r--r-- | Readme.md | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Readme.md b/Readme.md index bb741943892..593cd3f9bbf 100644 --- a/Readme.md +++ b/Readme.md @@ -193,7 +193,7 @@ Using git-subtree with `rustc` requires a patched git to make it work. The PR that is needed is [here](https://github.com/gitgitgadget/git/pull/493). Use the following instructions to install it: -``` +```bash git clone git@github.com:tqc/git.git cd git git checkout tqc/subtree @@ -204,6 +204,12 @@ make cp git-subtree ~/bin ``` +Then, do a sync with this command: + +```bash +PATH="$HOME/bin:$PATH" ~/bin/git-subtree push -P compiler/rustc_codegen_gcc/ ../rustc_codegen_gcc/ sync_branch_name +``` + ### How to use [mem-trace](https://github.com/antoyo/mem-trace) `rustc` needs to be built without `jemalloc` so that `mem-trace` can overload `malloc` since `jemalloc` is linked statically, so a `LD_PRELOAD`-ed library won't a chance to intercept the calls to `malloc`. |
