提交 2d786996 编写于 作者: aaronchen2k2k's avatar aaronchen2k2k

restore build script for win and linux

上级 eaf70f64
......@@ -26,13 +26,11 @@ compile_all: compile_win64 compile_win32 compile_linux compile_mac
compile_win64:
@echo 'start compile win64'
@CGO_ENABLED=1 CC=x86_64-w64-mingw32-gcc CXX=x86_64-w64-mingw32-g++ GOOS=windows GOARCH=amd64
@go build -x -v -ldflags "-s -w" -o ${BIN_WIN64}zd.exe src/zd.go
@CGO_ENABLED=1 CC=x86_64-w64-mingw32-gcc CXX=x86_64-w64-mingw32-g++ GOOS=windows GOARCH=amd64 go build -x -v -ldflags "-s -w" -o ${BIN_WIN64}zd.exe src/zd.go
compile_win32:
@echo 'start compile win32'
@CGO_ENABLED=1 CC=i686-w64-mingw32-gcc CXX=i686-w64-mingw32-g++ GOOS=windows GOARCH=386
@go build -x -v -ldflags "-s -w" -o ${BIN_WIN32}zd.exe src/zd.go
@CGO_ENABLED=1 CC=i686-w64-mingw32-gcc CXX=i686-w64-mingw32-g++ GOOS=windows GOARCH=386 go build -x -v -ldflags "-s -w" -o ${BIN_WIN32}zd.exe src/zd.go
compile_linux:
@echo 'start compile linux'
......
......@@ -236,10 +236,7 @@ func printLine(line string) {
}
}
func PrintToFile(line string) {
fmt.Fprintln(FileWriter, "==========")
fmt.Fprintln(FileWriter, "1.0|8.0\tb,a\t3,1,1")
fmt.Fprintln(FileWriter, "----------")
fmt.Fprintln(FileWriter, "a\tb\tc")
fmt.Fprintln(FileWriter, line)
}
func PrintToHttp(line string) {
fmt.Fprintln(HttpWriter, line)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册