split up cgo CFLAGS into files with separate build tags
This commit is contained in:
parent
ed5a2bf1d3
commit
29c239a810
|
@ -0,0 +1,9 @@
|
|||
//+build !windows
|
||||
|
||||
package imagequant
|
||||
|
||||
/*
|
||||
#cgo CFLAGS: -O3 -fno-math-errno -fopenmp -funroll-loops -fomit-frame-pointer -Wall -Wno-attributes -std=c99 -DNDEBUG -DUSE_SSE=1 -msse -fexcess-precision=fast
|
||||
#cgo LDFLAGS: -lm -fopenmp
|
||||
*/
|
||||
import "C"
|
|
@ -0,0 +1,9 @@
|
|||
//+build windows
|
||||
|
||||
package imagequant
|
||||
|
||||
/*
|
||||
#cgo CFLAGS: -O3 -fno-math-errno -fopenmp -funroll-loops -fomit-frame-pointer -Wall -Wno-attributes -std=c99 -DNDEBUG -DUSE_SSE=1 -msse -fexcess-precision=fast
|
||||
#cgo LDFLAGS: -fopenmp -static
|
||||
*/
|
||||
import "C"
|
|
@ -21,8 +21,6 @@ import (
|
|||
)
|
||||
|
||||
/*
|
||||
#cgo CFLAGS: -O3 -fno-math-errno -fopenmp -funroll-loops -fomit-frame-pointer -Wall -Wno-attributes -std=c99 -DNDEBUG -DUSE_SSE=1 -msse -fexcess-precision=fast
|
||||
#cgo LDFLAGS: -fopenmp -static
|
||||
#include "libimagequant.h"
|
||||
|
||||
const char* liqVersionString() {
|
||||
|
|
Loading…
Reference in New Issue