Skip to content

Commit f043f4e

Browse files
committed
build: fix: Add -w to grep to search only the exact symbol name
For example Init and UnInit conflict with each other.
1 parent 97150dd commit f043f4e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ function bin {
1414
}
1515

1616
function sym {
17-
echo $((0x$(llvm-nm $ELF | grep $1 | cut -d ' ' -f 1) + 1))
17+
echo $((0x$(llvm-nm $ELF | grep -w $1 | cut -d ' ' -f 1) + 1))
1818
}
1919

2020
cat <<EOF

0 commit comments

Comments
 (0)