summaryrefslogtreecommitdiff
path: root/ci/run-build.sh
blob: 04e163359cac104cecd5aeb9da0efef72aaf7146 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh
#
# Build Git
#

. ${0%/*}/lib-travisci.sh

if [ "$jobname" = linux-gcc ]; then
	gcc-6 --version
	cat >config.mak <<-EOF
	CC=gcc-6
	CFLAGS = -g -O2 -Wall
	CFLAGS += -Wextra
	CFLAGS += -Wmissing-prototypes
	CFLAGS += -Wno-empty-body
	CFLAGS += -Wno-maybe-uninitialized
	CFLAGS += -Wno-missing-field-initializers
	CFLAGS += -Wno-sign-compare
	CFLAGS += -Wno-unused-function
	CFLAGS += -Wno-unused-parameter
	EOF
fi
make --jobs=2