2 Commits

Author SHA1 Message Date
5c9e7c0ba2 Fix error message output. 2023-04-06 09:53:27 +02:00
f4a881a08a Update env.osx for macOS linking. 2023-04-06 09:52:57 +02:00
2 changed files with 2 additions and 2 deletions

View File

@@ -128,7 +128,7 @@ const CL_INIT_DEFAULT C.uint = C.CL_INIT_DEFAULT
// Wraps the corresponding error message // Wraps the corresponding error message
func Strerr(code ErrorCode) error { func Strerr(code ErrorCode) error {
err := errors.New(fmt.Sprintf("Error %s", C.int(code))) err := errors.New(fmt.Sprintf("Error %d", C.int(code)))
return err return err
} }

View File

@@ -1,2 +1,2 @@
export CGO_LDFLAGS="-L/opt/homebrew/opt/openssl@1.1/lib" export CGO_LDFLAGS="-L/opt/homebrew/opt/openssl@1.1/lib -L/usr/local/lib -lclamav"
export CGO_CPPFLAGS="-I/opt/homebrew/opt/openssl@1.1/include" export CGO_CPPFLAGS="-I/opt/homebrew/opt/openssl@1.1/include"