Skip to content

Commit 93dd661

Browse files
undo changes to .travis.yml and library_check.sh
1 parent 347abc4 commit 93dd661

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

.travis.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,6 @@ jobs:
330330
before_install:
331331
- mkdir bin ; ln -s /usr/bin/gcc-5 bin/gcc
332332
- sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-5 90
333-
- sudo update-alternative --install /usr/bin/gcc gcc /usr/bin/gcc-5 90
334333
- g++ --version
335334
# Coverity runs as part of before_script
336335
env:
@@ -344,7 +343,7 @@ install:
344343
- ccache --max-size=1G
345344
- make -C jbmc/src setup-submodules
346345
- make -C src minisat2-download
347-
- make CC=gcc-5 -C src/ansi-c library_check
346+
- make -C src/ansi-c library_check
348347
- make -C src/cpp library_check
349348
- make -C src "CXX=${COMPILER} ${EXTRA_CXXFLAGS}" -j3
350349
- make -C jbmc/src "CXX=${COMPILER} ${EXTRA_CXXFLAGS}" -j3

src/ansi-c/library_check.sh

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,12 @@
11
#!/usr/bin/env bash
22

33
CC=$1
4-
echo "C COMPILER THAT IS BEING USED: $CC"
5-
$CC --version
64
shift
75

86
for f in "$@"; do
97
echo "Checking ${f}"
108
cp "${f}" __libcheck.c
11-
# I don’t know why we’re not allowed to match a 'v' (that was already there)
12-
# but __builtin_add_overflow/__builtin_sub_overflow and __builtin_mul_overflow
13-
# are being used in implementations so they shouldn’t be replaced.
14-
perl -p -i -e 's/(__builtin_(?!v|add_overflow|sub_overflow|mul_overflow))/s$1/' __libcheck.c
9+
perl -p -i -e 's/(__builtin_[^v])/s$1/' __libcheck.c
1510
perl -p -i -e 's/(_mm_.fence)/s$1/' __libcheck.c
1611
perl -p -i -e 's/(__sync_)/s$1/' __libcheck.c
1712
perl -p -i -e 's/(__atomic_)/s$1/' __libcheck.c

0 commit comments

Comments
 (0)