Browse Source

Fix pre-puch hook on macOS+brew

DarthSim 1 month ago
parent
commit
cc5a45cb39
1 changed files with 1 additions and 1 deletions
  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 ./...