Skip to content

Commit 6997435

Browse files
authored
Update build-clspv.sh
1 parent ae4d90d commit 6997435

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

build/build-clspv.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,19 +44,21 @@ fi
4444
set -u
4545

4646
OUTPUT=$(realpath "${OUTPUT}")
47+
STAGING_DIR=/opt/compiler-explorer/clspv-master
48+
49+
mkdir -p "${STAGING_DIR}"
4750

4851
git clone --depth 1 "${URL}" --branch "${BRANCH}"
4952
pushd clspv
5053

5154
python3 utils/fetch_sources.py
5255

5356
mkdir build
54-
cmake -S . -B build -G "Unix Makefiles"
57+
cmake -S . -B build -G "Unix Makefiles" -DCMAKE_INSTALL_PREFIX="${STAGING_DIR}"
5558
cmake --build build --parallel $(nproc)
5659

5760
export XZ_DEFAULTS="-T 0"
58-
cd build
59-
tar Jcf "${OUTPUT}" --transform "s,^./,./${FULLNAME}/," ./
61+
tar Jcf "${OUTPUT}" --transform "s,^./,./${FULLNAME}/," -C "./${STAGING_DIR}" .
6062

6163
if [[ -n "${S3OUTPUT}" ]]; then
6264
s3cmd put --rr "${OUTPUT}" "${S3OUTPUT}"

0 commit comments

Comments
 (0)