Skip to content

Instantly share code, notes, and snippets.

@marnovo
Created November 3, 2017 17:22
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marnovo/53fa0134d432b1f990377e7c9bd940f1 to your computer and use it in GitHub Desktop.
Save marnovo/53fa0134d432b1f990377e7c9bd940f1 to your computer and use it in GitHub Desktop.
Selects the right xcode for normal usage or CUDA usage
# Selects the right xcode for normal usage or CUDA usage
PS3='xcode version selector: '
options=("Xcode latest (9.0)" "Xcode 8.3.3 (CUDA)" "Quit")
select opt in "${options[@]}"
do
case $opt in
"Xcode latest (9.0)")
echo "you chose: Xcode latest (9.0)"
sudo xcode-select -s /Applications/Xcode.app/Contents/Developer
;;
"Xcode 8.3.3 (CUDA)")
echo "you chose: Xcode 8.3.3 (CUDA)"
sudo xcode-select -s /Applications/Xcode_8.3.3.app/Contents/Developer
;;
"Quit")
break
;;
*) echo invalid option;;
esac
done
cd /Developer/NVIDIA/CUDA-9.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment