build_swiftinterface.sh 345 B

123456789101112
  1. #!/bin/zsh
  2. # A `realpath` alternative using the default C implementation.
  3. filepath() {
  4. [[ $1 = /* ]] && echo "$1" || echo "$PWD/${1#./}"
  5. }
  6. OPENSWIFTUI_ROOT="$(dirname $(dirname $(filepath $0)))"
  7. cd $OPENSWIFTUI_ROOT
  8. swift build -Xswiftc -emit-module-interface -Xswiftc -enable-library-evolution -Xswiftc -no-verify-emitted-module-interface