We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9427db3 commit db676a3Copy full SHA for db676a3
1 file changed
common.mk
@@ -14,6 +14,26 @@ ifndef VERBOSE
14
MAKEFLAGS += --no-print-directory
15
endif
16
17
+ifneq (, $(GOOS))
18
+ifneq (, $(GOARCH))
19
+ifneq (, $(GOBIN))
20
+$(error "Cross compilation cannot work with GOBIN defined. Stopping build.")
21
+endif
22
23
24
+
25
26
+ifeq (, $(GOARCH))
27
+$(error "Cross compilation requires both GOOS and GOARCH to be specified. Stopping build.")
28
29
30
31
+ifeq (, $(GOOS))
32
33
34
35
36
37
ifeq (, $(GOOS))
38
RACE_CHECK=-race
39
else
0 commit comments