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 75bb6a9 commit 47fd1c9Copy full SHA for 47fd1c9
Makefile
@@ -49,10 +49,14 @@ else
49
export GOTESTCOMMAND=gotestsum --format pkgname --jsonfile testresults.json --
50
endif
51
52
-# M1 Mac--homebrew install location in /opt/homebrew
53
ifeq ($(OS_TYPE), darwin)
54
-ifeq ($(ARCH), arm64)
+# For Xcode >= 15, set -no_warn_duplicate_libraries linker option
+CLANG_MAJOR_VERSION := $(shell clang --version | grep '^Apple clang version ' | awk '{print $$4}' | cut -d. -f1)
55
+ifeq ($(shell [ $(CLANG_MAJOR_VERSION) -ge 15 ] && echo true), true)
56
EXTLDFLAGS := -Wl,-no_warn_duplicate_libraries
57
+endif
58
+# M1 Mac--homebrew install location in /opt/homebrew
59
+ifeq ($(ARCH), arm64)
60
export CPATH=/opt/homebrew/include
61
export LIBRARY_PATH=/opt/homebrew/lib
62
0 commit comments