瀏覽代碼

Fix pre-puch hook on macOS+brew

DarthSim 1 月之前
父節點
當前提交
cc5a45cb39
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      .lefthook/pre-push/test

+ 1 - 1
.lefthook/pre-push/test

@@ -8,7 +8,7 @@ if [ -x "$(which brew)" ]; then
 fi
 
 export CGO_LDFLAGS_ALLOW="-s|-w"
-export CGO_CFLAGS_ALLOW="-Xpreprocessor"
+export CGO_CFLAGS_ALLOW="-I|-Xpreprocessor"
 
 if [ -x "$(which gotestsum)" ]; then
   gotestsum ./...