forked from nils.hoelscher/RTSA-lab01-CacheAnalysis
Better mac Setup.
This commit is contained in:
parent
b9f35dca18
commit
c032f669c2
|
@ -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.
|
I recommend using docker and VS Code for setup.
|
||||||
Also check out the recommended extensions in the Docker section.
|
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.
|
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.
|
Some other unrecommended Setups are at the end of this Readme.
|
||||||
|
|
||||||
### Setup on a Pool PC
|
### Setup on a Pool PC
|
||||||
|
|
|
@ -44,10 +44,21 @@ buildllvm() {
|
||||||
rm llvm-13.0.1.src.tar.xz
|
rm llvm-13.0.1.src.tar.xz
|
||||||
cmake -DCMAKE_BUILD_TYPE=MinSizeRel -DLLVM_TARGETS_TO_BUILD=host llvm-13.0.1.src/
|
cmake -DCMAKE_BUILD_TYPE=MinSizeRel -DLLVM_TARGETS_TO_BUILD=host llvm-13.0.1.src/
|
||||||
make -j 4
|
make -j 4
|
||||||
export LLVM_DIR=$(pwd)
|
export LLVM_DIR=$(pwd) >> ~/.zshrc
|
||||||
|
export LLVM_DIR=$(pwd) >> ~/.bashrc
|
||||||
cd ..
|
cd ..
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
mac() {
|
||||||
|
brew install cmake make wget ninja
|
||||||
|
buildllvm
|
||||||
|
cd llvm
|
||||||
|
export LLVM_DIR=$(pwd) >> ~/.zshrc
|
||||||
|
cd ..
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
allBenchs=( "adpcm"
|
allBenchs=( "adpcm"
|
||||||
"bs"
|
"bs"
|
||||||
"bsort100"
|
"bsort100"
|
||||||
|
@ -189,6 +200,7 @@ case $1 in
|
||||||
echo "Please provide one of the following arguments:"
|
echo "Please provide one of the following arguments:"
|
||||||
echo " llvm Build LLVM from source"
|
echo " llvm Build LLVM from source"
|
||||||
echo " llvmcontinue Contionue building llvm where you left off last time"
|
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 " clean Deletes the build folder"
|
||||||
echo " config Creates build folder and configures build System"
|
echo " config Creates build folder and configures build System"
|
||||||
echo " docker Build and Run Docker container for development"
|
echo " docker Build and Run Docker container for development"
|
||||||
|
|
Reference in New Issue