Skip to content

Commit 705cbae

Browse files
authored
Merge pull request #139 from petercolberg/travis
Test Linux amd64/i686/arm64
2 parents e2fc5dd + 806c725 commit 705cbae

5 files changed

Lines changed: 36 additions & 39 deletions

File tree

.travis.sh

Lines changed: 0 additions & 26 deletions
This file was deleted.

.travis.yml

Lines changed: 32 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,36 @@
1+
# We require a full (virtual) machine to load the kernel module for
2+
# binfmt support, which is needed to test other architectures besides
3+
# x86 using qemu user emulation. (This will not work in a container.)
4+
sudo: required
5+
dist: trusty
16
language: c
2-
script: ./.travis.sh
3-
os:
4-
- linux
5-
env:
6-
- TARGET=host
7-
- TARGET=arm32
7+
8+
script:
9+
- make $FLAGS
10+
- make check $FLAGS $TEST_FLAGS
11+
- make clean && git status --ignored --porcelain && test -z "$(git status --ignored --porcelain)"
12+
813
matrix:
9-
exclude:
10-
- os: osx
11-
env: TARGET=arm32
14+
include:
15+
- os: linux
16+
env: FLAGS="CC=gcc"
17+
18+
- os: linux
19+
env: FLAGS="CC=gcc ARCH=i686" # implies -m32 -march=i686
20+
addons:
21+
apt:
22+
packages:
23+
- gcc-multilib
24+
25+
- os: linux
26+
env: FLAGS="CC=aarch64-linux-gnu-gcc" TEST_FLAGS="LDFLAGS=-static"
27+
addons:
28+
apt:
29+
packages:
30+
- gcc-aarch64-linux-gnu
31+
- libc6-dev-arm64-cross
32+
- qemu-user-static
33+
- binfmt-support
34+
1235
notifications:
1336
email: false

Make.inc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ endif
111111
ifeq ($(OS), WINNT)
112112
SHLIB_EXT = dll
113113
SONAME_FLAG = -soname
114-
override CFLAGS_add += -nodefaultlibs
114+
CFLAGS_add += -nodefaultlibs
115115
shlibdir = $(bindir)
116116
else
117117
ifeq ($(OS), Darwin)
@@ -121,7 +121,7 @@ else
121121
SHLIB_EXT = so
122122
SONAME_FLAG = -soname
123123
endif
124-
override CFLAGS_add += -fPIC
124+
CFLAGS_add += -fPIC
125125
shlibdir = $(libdir)
126126
endif
127127

amd64/bsd_asm.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
#include "../i387/osx_asm.h"
4141
#define CNAME(x) EXT(x)
4242
#else
43-
#include "cdefs-compat.h"
43+
#include "bsd_cdefs.h"
4444

4545
#ifdef PIC
4646
#define PIC_PLT(x) x@PLT

ld80/s_exp2l.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
#include <float.h>
3131
#include <stdint.h>
3232

33-
#include "cdefs-compat.h"
33+
#include "bsd_cdefs.h"
3434
#include "amd64/bsd_ieeefp.h"
3535

3636
#include <openlibm_math.h>

0 commit comments

Comments
 (0)