瀏覽代碼

Fix toc.sh, llvm-nm does not recognise '-f P' option

llvm-nm only accepts full name for format option, or just '-P' alias.

Test: build
Bug: 184360305
Change-Id: Ie25f5410403f4dbca564430149a5753e0d48d60d
Yi Kong 3 年之前
父節點
當前提交
6f43f54264
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      scripts/toc.sh

+ 1 - 1
scripts/toc.sh

@@ -57,7 +57,7 @@ EOF
 
 do_pe() {
     "${CLANG_BIN}/llvm-objdump" -x "${infile}" | grep "^Name" | cut -f3 -d" " > "${outfile}.tmp"
-    "${CLANG_BIN}/llvm-nm" -g -f p "${infile}" | cut -f1-2 -d" " >> "${outfile}.tmp"
+    "${CLANG_BIN}/llvm-nm" -gP "${infile}" | cut -f1-2 -d" " >> "${outfile}.tmp"
 
     cat <<EOF > "${depsfile}"
 ${outfile}: \\