2013-04-22 14:42:04 -06:00
|
|
|
:: Copyright 2013 The Go Authors. All rights reserved.
|
|
|
|
:: Use of this source code is governed by a BSD-style
|
|
|
|
:: license that can be found in the LICENSE file.
|
|
|
|
|
|
|
|
@echo off
|
|
|
|
|
2015-04-06 23:30:27 -06:00
|
|
|
gcc -c cgoso_c.c -DEXPORT_DLL
|
2013-04-22 14:42:04 -06:00
|
|
|
gcc -shared -o libcgosotest.dll cgoso_c.o
|
|
|
|
if not exist libcgosotest.dll goto fail
|
|
|
|
go build main.go
|
|
|
|
if not exist main.exe goto fail
|
|
|
|
main.exe
|
|
|
|
goto :end
|
|
|
|
|
|
|
|
:fail
|
2015-03-03 22:16:26 -07:00
|
|
|
echo FAIL
|
2013-04-22 14:42:04 -06:00
|
|
|
:end
|
|
|
|
del /F cgoso_c.o libcgosotest.dll main.exe 2>NUL
|