Add -t to xargs, add bash

This commit is contained in:
xenia 2023-08-15 12:23:23 +02:00
parent da52df1e8f
commit 1201987364

View File

@ -1,10 +1,11 @@
#!/usr/bin/env bash
set -e
mkdir -p artifacts
log "Kompilerar backend..."
find backend -type f -and -name '*.hs' -print0 \
| xargs -0 ghc -o artifacts/Main \
| xargs -t0 ghc -o artifacts/Main \
-odir artifacts \
-hidir artifacts \
-tmpdir artifacts