build_swiftinterface.sh 348 B

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