浏览代码

Merge pull request #2983 from kkartaltepe/formatcode-faster

CI: Improve formatcode.sh efficiency
Colin Edwards 5 年之前
父节点
当前提交
d886dbef51
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      formatcode.sh

+ 1 - 1
formatcode.sh

@@ -35,4 +35,4 @@ find . -type d \( -path ./deps \
 -o -path ./plugins/obs-outputs/ftl-sdk \
 -o -path ./plugins/obs-vst \
 -o -path ./build \) -prune -type f -o -name '*.h' -or -name '*.hpp' -or -name '*.m' -or -name '*.mm' -or -name '*.c' -or -name '*.cpp' \
-| xargs -I{} -P ${NPROC} ${CLANG_FORMAT} -i -style=file  -fallback-style=none {}
+| xargs -L100 -P${NPROC} ${CLANG_FORMAT} -i -style=file  -fallback-style=none