File tree Expand file tree Collapse file tree 2 files changed +16
-1
lines changed
Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -6,13 +6,17 @@ MakefileDir := $(dir $(abspath $(lastword $(MAKEFILE_LIST))))
66BUILD := $(shell git describe --tags)
77
88# Default target builds binaries
9- all : binaries
9+ all : cgo binaries
1010
1111# Security check
1212.PHONY : audit
1313audit :
1414 go tool govulncheck ./src/...
1515
16+ .PHONY : cgo
17+ cgo :
18+ ./scripts/can_cgo.sh
19+
1620# Generated code
1721generate : src/transform/rotation.go
1822
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+
3+ if [[ $( go env CGO_ENABLED) != ' 1' ]]; then
4+ echo " Your system cannot build RAIS. It appears that there may not be a C compiler,"
5+ echo " which is required for the openjpeg bindings. Install gcc, clang, or similar"
6+ echo " and try again."
7+
8+ exit 1
9+ fi
10+
11+ exit 0
You can’t perform that action at this time.
0 commit comments