#!/bin/bash set -eu cd "$(dirname "$0")/.." source scripts/common.sh BUILD_DIR="$(mktemp -d "$TARNAX_SCRATCH_ROOT/contracts.XXXXXX")" trap 'rm -rf "$BUILD_DIR"' EXIT xcrun swiftc -parse-as-library -module-cache-path "$BUILD_DIR/cache" Tarnax/Core.swift Tests/ContractTests.swift -o "$BUILD_DIR/ContractTests" "$BUILD_DIR/ContractTests" xcrun swiftc -parse-as-library -module-cache-path "$BUILD_DIR/cache" Tarnax/Core.swift Tests/LogTests.swift -o "$BUILD_DIR/LogTests" "$BUILD_DIR/LogTests"