Skip to content

Commit cc5e146

Browse files
committed
chore(gt): add llvm-build for win
1 parent 0bc4cb6 commit cc5e146

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

libcs/Makefile

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff 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
7579
endif
7680
ifeq ($(TARGET_CPU), native)
7781
TARGET_CPU=

libcs/dep/_google-webrtc

Submodule _google-webrtc updated from 243e5b2 to 2f6b9e0

0 commit comments

Comments
 (0)