summaryrefslogtreecommitdiffstats
path: root/taskcluster/scripts/misc/generate-codeql-db-cpp.sh
blob: 57d72fd426b1071183df560ded24aec707562d91 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#! /bin/bash -vex

set -x -e

####
# Wrapper for building the CodeQL database with the build-linux script
####

cd /builds/worker

$MOZ_FETCHES_DIR/codeql/codeql database create \
  --language=cpp \
  -J=-Xmx32768M \
  --command="${GECKO_PATH}/taskcluster/scripts/builder/build-linux.sh" \
  codeql-database

# TODO Switch this to zst per 1637381 when this is used for static analysis jobs
tar cf codeql-db-cpp.tar codeql-database
xz codeql-db-cpp.tar