Skip to content
This repository was archived by the owner on Jul 11, 2023. It is now read-only.

Commit 0716b51

Browse files
committed
Fix true command path
Signed-off-by: Junyeong Jeong <[email protected]>
1 parent af09e51 commit 0716b51

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

cargo-bpf/src/build.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -179,10 +179,7 @@ fn build_probe(
179179
.arg("--")
180180
.arg("--cfg")
181181
.arg(version)
182-
.args(
183-
"--emit=llvm-bc -C panic=abort -C lto -C opt-level=3 -C linker=/usr/bin/true"
184-
.split(' '),
185-
)
182+
.args("--emit=llvm-bc -C panic=abort -C lto -C opt-level=3 -C linker=true".split(' ')) // /usr/bin/true or /bin/true
186183
.arg("-g") // To generate .BTF section
187184
.arg("-o")
188185
.arg(artifacts_dir.join(probe).to_str().unwrap())

0 commit comments

Comments
 (0)