File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed
Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -60,18 +60,22 @@ ifeq ($(TARGET_OS), apple)
6060 export CXX=clang++
6161 TARGET_OS=mac
6262 OBJCOPY=llvm-objcopy
63- _SETUP_LLVM:=$(shell rm dep/_google-webrtc/src/third_party/llvm-build/Release+Asserts 2> /dev/null)
6463 ifeq ($(TARGET_CPU), arm64)
6564 RUST_TARGET?=aarch64-apple-darwin
66- _SETUP_LLVM:=$(shell ln -s ./Release+Asserts.mac_arm64 dep/_google-webrtc/src/third_party/llvm-build/Release+Asserts)
6765 else
6866 ifndef RUST_TARGET
6967 RUST_TARGET:=$(TARGET_CPU)-apple-darwin
7068 endif
71- _SETUP_LLVM:=$(shell ln -s ./Release+Asserts.mac dep/_google-webrtc/src/third_party/llvm-build/Release+Asserts)
7269 endif
7370 DEF_WEBRTC_COND?=-DWEBRTC_MAC -DWEBRTC_POSIX
7471 DEF_LDFLAGS?=-framework Cocoa
72+ _SETUP_LLVM:=$(shell rm dep/_google-webrtc/src/third_party/llvm-build/Release+Asserts 2> /dev/null)
73+ _HOST_ARCH:=$(shell uname -m)
74+ ifeq ($(_HOST_ARCH), arm64)
75+ _SETUP_LLVM:=$(shell ln -s ./Release+Asserts.mac_arm64 dep/_google-webrtc/src/third_party/llvm-build/Release+Asserts)
76+ else
77+ _SETUP_LLVM:=$(shell ln -s ./Release+Asserts.mac dep/_google-webrtc/src/third_party/llvm-build/Release+Asserts)
78+ endif
7579endif
7680ifeq ($(TARGET_CPU ) , native)
7781 TARGET_CPU=
You can’t perform that action at this time.
0 commit comments