Skip to content
This repository was archived by the owner on Aug 12, 2025. It is now read-only.

Commit 9e066c4

Browse files
committed
use default gcc/clang on Travis CI for faster builds
1 parent 4176dd1 commit 9e066c4

File tree

3 files changed

+6
-21
lines changed

3 files changed

+6
-21
lines changed

.travis.yml

Lines changed: 4 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -6,31 +6,16 @@ matrix:
66
- os: linux
77
dist: trusty
88
sudo: false
9-
addons:
10-
apt:
11-
sources:
12-
- ubuntu-toolchain-r-test
13-
packages:
14-
- gcc-7
15-
env:
16-
- PKGI_CC=gcc-7
9+
compiler: gcc
1710

1811
- os: linux
1912
dist: trusty
2013
sudo: false
21-
addons:
22-
apt:
23-
sources:
24-
- llvm-toolchain-trusty-5.0
25-
packages:
26-
- clang-5.0
27-
env:
28-
- PKGI_CC=clang-5.0
14+
compiler: clang
2915

3016
- os: osx
3117
osx_image: xcode9.1
32-
env:
33-
- PKGI_CC=clang
18+
compiler: clang
3419

3520
script:
36-
- CC=${PKGI_CC} make
21+
- make

makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ SRC=${wildcard pkg2zip*.c} puff.c
1010
OBJ=${SRC:.c=.o}
1111
DEP=${SRC:.c=.d}
1212

13-
CFLAGS=-pipe -fvisibility=hidden -Wall -Wextra -Werror -DNDEBUG -O2
13+
CFLAGS=-std=c99 -pipe -fvisibility=hidden -Wall -Wextra -Werror -DNDEBUG -D_GNU_SOURCE -O2
1414
LDFLAGS=-s
1515

1616
.PHONY: all clean

pkg2zip_sys.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,4 +222,4 @@ void sys_vstrncat(char* dst, size_t n, const char* format, ...)
222222
va_end(args);
223223

224224
strncat(dst, temp, n - strlen(dst) - 1);
225-
}
225+
}

0 commit comments

Comments
 (0)