Skip to content

Instantly share code, notes, and snippets.

@tupunco
Last active March 10, 2019 19:12
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save tupunco/50b05d2f362c8320a84f672d621e802d to your computer and use it in GitHub Desktop.
Save tupunco/50b05d2f362c8320a84f672d621e802d to your computer and use it in GitHub Desktop.
tidb windows build&test
@ECHO off
ECHO ------------------build goyacc------------------
go build -v -o bin/goyacc.exe parser/goyacc/main.go
ECHO ------------------gen parser.go------------------
bin\goyacc.exe -o NUL -xegen temp_parser_file parser/parser.y
bin\goyacc.exe -o parser/parser.go -xe temp_parser_file parser/parser.y
rm -f y.output
rm -f temp_parser_file
ECHO ------------------build tidb-server------------------
go build -v -o bin/tidb-server.exe tidb-server/main.go
REM bin\tidb-server.exe -path tidb.bolt -store boltdb
REM bin\tidb-server.exe -path tidb.db
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment