blob: 4465cfef61b52fcc9a51a5457d667070098ab062 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
|
dist: xenial
language: c
os: linux
jobs:
include:
- compiler: clang
- compiler: gcc
- os: osx
- env:
- MAKEFILE_TARGET=dist
- compiler: clang
env:
- CFLAGS_EXTRA="-O3 -march=native"
- CONF_OPTIONS="--enable-assertions"
- compiler: gcc
env:
- CFLAGS_EXTRA="-O3 -march=native"
- CONF_OPTIONS="--enable-assertions"
- os: osx
env:
- CFLAGS_EXTRA="-O3 -march=native"
- CONF_OPTIONS="--enable-assertions"
- compiler: clang
env:
- CFLAGS_EXTRA="-march=native -std=c11"
- compiler: gcc
env:
- CFLAGS_EXTRA="-march=native -D _FORTIFY_SOURCE=2 -std=c89"
- addons:
apt:
packages:
- gcc-multilib
compiler: clang
env:
- CFLAGS_EXTRA="-m32 -march=native"
- CONF_OPTIONS="--enable-assertions"
- addons:
apt:
packages:
- gcc-multilib
compiler: gcc
env:
- CFLAGS_EXTRA="-m32 -march=native"
- CONF_OPTIONS="--enable-assertions"
- os: osx
env:
- CFLAGS_EXTRA="-m32 -march=native -D _FORTIFY_SOURCE=2"
- CONF_OPTIONS="--enable-assertions"
- compiler: gcc
env:
- CFLAGS_EXTRA="-D AO_GENERALIZE_ASM_BOOL_CAS -D AO_USE_NANOSLEEP -D AO_USE_NO_SIGNALS"
- CONF_OPTIONS="--enable-assertions"
- compiler: clang
env:
- CFLAGS_EXTRA="-D AO_USE_PTHREAD_DEFS"
- CONF_OPTIONS="--enable-assertions"
- addons:
apt:
packages:
- gcc-5
- gcc-5-multilib
sources:
- ubuntu-toolchain-r-test
compiler: gcc-5
env:
- CFLAGS_EXTRA="-mx32 -march=native -D _FORTIFY_SOURCE=2"
- CONF_OPTIONS="--enable-assertions --enable-shared"
- addons:
apt:
packages:
- musl-tools
compiler: musl-gcc
env:
- CFLAGS_EXTRA="-march=native"
- CONF_OPTIONS="--enable-assertions"
- addons:
apt:
packages:
- gcc-mingw-w64
compiler: x86_64-w64-mingw32-gcc
env:
- CONF_OPTIONS="--host=x86_64-w64-mingw32 --enable-shared"
- MAKEFILE_TARGET=all
- addons:
apt:
packages:
- gcc-mingw-w64
compiler: i686-w64-mingw32-gcc
env:
- CONF_OPTIONS="--host=i686-w64-mingw32"
- MAKEFILE_TARGET=all
- env:
- MAKEFILE_TARGET=distcheck
- AUTOMAKE_VER=1.15
- M4_VER=1.4.18
- LIBTOOL_VER=2.4.6
before_install:
- if [[ "$AUTOMAKE_VER" != "" || "$LIBTOOL_VER" != "" || "$M4_VER" != "" ]]; then
GNUTOOLS_ROOT=`pwd`/../gnu-tools;
export PATH=$GNUTOOLS_ROOT/bin:$PATH;
GNU_DOWNLOAD_SITE=https://ftp.gnu.org/gnu;
fi
- if [[ "$M4_VER" != "" ]]; then
M4_XZ_URL=$GNU_DOWNLOAD_SITE/m4/m4-$M4_VER.tar.xz;
wget --no-check-certificate -O - $M4_XZ_URL | tar xf - --xz --directory ~;
(cd ~/m4-$M4_VER && ./configure --prefix=$GNUTOOLS_ROOT && make -j check && make install);
fi
- if [[ "$LIBTOOL_VER" != "" ]]; then
LIBTOOL_XZ_URL=$GNU_DOWNLOAD_SITE/libtool/libtool-$LIBTOOL_VER.tar.xz;
wget --no-check-certificate -O - $LIBTOOL_XZ_URL | tar xf - --xz --directory ~;
(cd ~/libtool-$LIBTOOL_VER && ./configure --prefix=$GNUTOOLS_ROOT && make -j && make install);
fi
- if [[ "$AUTOMAKE_VER" != "" ]]; then
AUTOMAKE_XZ_URL=$GNU_DOWNLOAD_SITE/automake/automake-$AUTOMAKE_VER.tar.xz;
wget --no-check-certificate -O - $AUTOMAKE_XZ_URL | tar xf - --xz --directory ~;
(cd ~/automake-$AUTOMAKE_VER && ./configure --prefix=$GNUTOOLS_ROOT && make -j && make install);
fi
- if [[ "$MAKEFILE_TARGET" == "dist"* ]]; then
autoconf --version;
automake --version;
m4 --version;
libtool --version || true;
fi
- if [[ "$MAKEFILE_TARGET" == "" ]]; then MAKEFILE_TARGET=check; fi
install:
- "./autogen.sh"
script:
- ./configure $CONF_OPTIONS
- cat src/config.h
- make -j $MAKEFILE_TARGET CFLAGS_EXTRA="$CFLAGS_EXTRA"
- if [ -f tests/test_atomic.log ]; then cat tests/test_atomic*.log; fi
deploy:
provider: releases
edge: true
file: libatomic_ops-*.tar.gz
file_glob: true
on:
condition: $MAKEFILE_TARGET = distcheck
repo: ivmai/libatomic_ops
tags: true
|