-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathactivate
More file actions
28 lines (21 loc) · 978 Bytes
/
activate
File metadata and controls
28 lines (21 loc) · 978 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# set source paths for bootstrap phase
export REV_SOURCE_PATH=lib/core/src:lib/analyzer/src:lib/reader/src:lib/io/src/:lib/compiler/src
OS=`uname -s`
ARCH=`uname -p`
# set path to include architecture directory
export PATH=$PATH:"$PWD/target/$OS-$ARCH/bin:$PWD/bin"
# set library path to target folder
export TRQ_OS=$(uname -s)
export TRQ_ARCH=$(uname -m)
# export LD_LIBRARY_PATH=/opt/homebrew/opt/llvm@15/lib/:target/"$TRQ_OS"-"$TRQ_ARCH"/lib:$LD_LIBRARY_PATH
# export LD_LIBRARY_PATH=/Users/jan/Code/fun/llvm/llvm/build/lib/:target/"$TRQ_OS"-"$TRQ_ARCH"/lib:$LD_LIBRARY_PATH
#
if [ "$LLVM_PATH" = "Darwin" ]; then
if ! [ -x $(command -v brew &> /dev/null) ];
then
echo "homebrew could not be found. if you don't want to install dependencies via homebrew, you have to build llvm and readline yourself, and set LLVM_PATH yourself."
else
export LLVM_PATH=$(brew --prefix llvm@18)
fi
export DYLD_LIBRARY_PATH=$LLVM_PATH/lib:$PWD/target/Darwin-arm/lib
fi