Better mac Setup.

This commit is contained in:
Nils Hölscher 2022-04-22 12:54:59 +02:00
parent b9f35dca18
commit c032f669c2
2 changed files with 21 additions and 1 deletions

View File

@ -19,6 +19,14 @@ I am more than happy helping you install Linux on your machine.
I recommend using docker and VS Code for setup.
Also check out the recommended extensions in the Docker section.
If you prefer to work from Linux or Mac OS X, check the Dockerfile for dependencies.
For Mac (tested in M1 Mac mini) you can also use:
```bash
./poolhelper.sh mac
```
But you will need brew installed and also have to use the poolhelper script instead of the normal helper script.
Some other unrecommended Setups are at the end of this Readme.
### Setup on a Pool PC

View File

@ -44,10 +44,21 @@ buildllvm() {
rm llvm-13.0.1.src.tar.xz
cmake -DCMAKE_BUILD_TYPE=MinSizeRel -DLLVM_TARGETS_TO_BUILD=host llvm-13.0.1.src/
make -j 4
export LLVM_DIR=$(pwd)
export LLVM_DIR=$(pwd) >> ~/.zshrc
export LLVM_DIR=$(pwd) >> ~/.bashrc
cd ..
}
mac() {
brew install cmake make wget ninja
buildllvm
cd llvm
export LLVM_DIR=$(pwd) >> ~/.zshrc
cd ..
}
allBenchs=( "adpcm"
"bs"
"bsort100"
@ -189,6 +200,7 @@ case $1 in
echo "Please provide one of the following arguments:"
echo " llvm Build LLVM from source"
echo " llvmcontinue Contionue building llvm where you left off last time"
echo " mac Setup LLVM for mac (needs brew)"
echo " clean Deletes the build folder"
echo " config Creates build folder and configures build System"
echo " docker Build and Run Docker container for development"