Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 66343bf

Browse files
committed
Default cargo.sh to release build of cg_clif
1 parent 1b8df38 commit 66343bf

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Readme.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@ Assuming `$cg_clif_dir` is the directory you cloned this repo into and you follo
2424
In the directory with your project (where you can do the usual `cargo build`), run:
2525

2626
```bash
27-
$ CHANNEL="release" $cg_clif_dir/cargo.sh run
27+
$ $cg_clif_dir/cargo.sh run
2828
```
2929

3030
This should build and run your project with rustc_codegen_cranelift instead of the usual LLVM backend.
3131

32-
If you compiled cg_clif in debug mode (aka you didn't pass `--release` to `./test.sh`) you should use `CHANNEL="debug"` instead or omit `CHANNEL="release"` completely.
32+
If you compiled cg_clif in debug mode (aka you didn't pass `--release` to `./test.sh`) you should set `CHANNEL="debug"`.
3333

3434
### Rustc
3535

cargo.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22

33
if [ -z $CHANNEL ]; then
4-
export CHANNEL='debug'
4+
export CHANNEL='release'
55
fi
66

77
pushd $(dirname "$0") >/dev/null

0 commit comments

Comments
 (0)