File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed
Samples/SwiftAndJavaJarSampleLib Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,8 @@ declare -r RESET='\033[0m'
1111declare -r sampleDir=" $1 "
1212declare -r CI_VALIDATE_SCRIPT=' ci-validate.sh'
1313
14+ echo " Using Swift: $( which swift) "
15+
1416echo " "
1517echo " "
1618echo " ========================================================================"
Original file line number Diff line number Diff line change 5454elif [ " $( uname -s) " = ' Darwin' ]
5555then
5656 SWIFT_LIB_PATHS=$( find " $( swiftly use --print-location) " | grep dylib$ | grep libswiftCore | grep macos | xargs dirname)
57+ if [ -n " ${SWIFT_LIB_PATHS} " ]
58+ then
59+ # last resort; on CI we just search where we have swift libs
60+ SWIFT_LIB_PATHS=$( find / | grep dylib$ | grep libswiftCore | grep macos | xargs dirname)
61+ fi
5762 SWIFT_LIB_PATHS=" ${SWIFT_LIB_PATHS} :$( pwd) /$( find . | grep libMySwiftLibrary.dylib$ | sort | head -n1 | xargs dirname) "
63+
5864fi
5965echo " SWIFT_LIB_PATHS = ${SWIFT_LIB_PATHS} "
6066
You can’t perform that action at this time.
0 commit comments