Make setup_go_workspace_for_soong work on Mac
Test: build/soong/scripts/setup_go_workspace_for_soong.sh on Mac and Linux Change-Id: Idfcad3ace6f3ff4b68a438b8f1e0d94ff35573e0
This commit is contained in:
@@ -53,6 +53,7 @@ function bindAll() {
|
|||||||
bindOne "${ANDROID_PATH}/build/soong" "${OUTPUT_PATH}/src/android/soong"
|
bindOne "${ANDROID_PATH}/build/soong" "${OUTPUT_PATH}/src/android/soong"
|
||||||
|
|
||||||
bindOne "${ANDROID_PATH}/art/build" "${OUTPUT_PATH}/src/android/soong/art"
|
bindOne "${ANDROID_PATH}/art/build" "${OUTPUT_PATH}/src/android/soong/art"
|
||||||
|
bindOne "${ANDROID_PATH}/external/golang-protobuf" "${OUTPUT_PATH}/src/github.com/golang/protobuf"
|
||||||
bindOne "${ANDROID_PATH}/external/llvm/soong" "${OUTPUT_PATH}/src/android/soong/llvm"
|
bindOne "${ANDROID_PATH}/external/llvm/soong" "${OUTPUT_PATH}/src/android/soong/llvm"
|
||||||
bindOne "${ANDROID_PATH}/external/clang/soong" "${OUTPUT_PATH}/src/android/soong/clang"
|
bindOne "${ANDROID_PATH}/external/clang/soong" "${OUTPUT_PATH}/src/android/soong/clang"
|
||||||
echo
|
echo
|
||||||
@@ -64,7 +65,14 @@ function bindOne() {
|
|||||||
existingPath="$1"
|
existingPath="$1"
|
||||||
newPath="$2"
|
newPath="$2"
|
||||||
mkdir -p "$newPath"
|
mkdir -p "$newPath"
|
||||||
|
case $(uname -s) in
|
||||||
|
Darwin)
|
||||||
|
echoAndDo bindfs -o allow_recursion -n "${existingPath}" "${newPath}"
|
||||||
|
;;
|
||||||
|
Linux)
|
||||||
echoAndDo bindfs "${existingPath}" "${newPath}"
|
echoAndDo bindfs "${existingPath}" "${newPath}"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
function echoAndDo() {
|
function echoAndDo() {
|
||||||
|
Reference in New Issue
Block a user