mirror of
https://github.com/openharmony/third_party_libfuse.git
synced 2026-07-01 10:05:30 -04:00
Update Travis to Ubuntu Bionic
This commit is contained in:
+5
-2
@@ -1,16 +1,19 @@
|
||||
sudo: required
|
||||
dist: bionic
|
||||
|
||||
before_install:
|
||||
- curl https://spot.fedorapeople.org/spotfoss-ppa.key | sudo apt-key add -
|
||||
- wget https://launchpad.net/~spotfoss/+archive/ubuntu/ppa/+files/valgrind_3.16.1-2_amd64.deb
|
||||
- sudo apt install ./valgrind_3.16.1-2_amd64.deb
|
||||
language:
|
||||
- c
|
||||
- c++
|
||||
addons:
|
||||
apt:
|
||||
sources:
|
||||
- ubuntu-toolchain-r-test
|
||||
- sourceline: 'ppa:ubuntu-toolchain-r/test'
|
||||
packages:
|
||||
- doxygen
|
||||
- valgrind
|
||||
- clang
|
||||
- libstdc++-7-dev
|
||||
- libstdc++-10-dev
|
||||
|
||||
+9
-4
@@ -89,12 +89,17 @@ endif
|
||||
|
||||
# gcc-10 and newer support the symver attribute which we need to use if we
|
||||
# want to support LTO
|
||||
# recent clang and gcc both support __has_attribute (and if they are too old
|
||||
# to have __has_attribute, then they are too old to support symver)
|
||||
# other compilers might not have __has_attribute, but in those cases
|
||||
# it is safe for this check to fail and for us to fallback to the old _asm_
|
||||
# method for symver
|
||||
code = '''
|
||||
__attribute__((symver ("get@@TEST_0"))) int get_4() {
|
||||
return 4;
|
||||
}
|
||||
#if defined __has_attribute && !__has_attribute (symver)
|
||||
#error symver attribute not supported
|
||||
#endif
|
||||
|
||||
int main(void) {
|
||||
(void) get_4();
|
||||
return 0;
|
||||
}'''
|
||||
if cc.compiles(code, args: [ '-O0', '-c'])
|
||||
|
||||
@@ -1,2 +1,4 @@
|
||||
[pytest]
|
||||
addopts = --verbose --assert=rewrite --tb=native -x -r a
|
||||
markers =
|
||||
uses_fuse: Indicates that FUSE is supported.
|
||||
|
||||
@@ -36,7 +36,7 @@ for CC in gcc gcc-7 gcc-10 clang; do
|
||||
build_opts=''
|
||||
fi
|
||||
if [ ${CC} == 'gcc-10' ]; then
|
||||
build_opts='-Dc_args="-flto=auto -ffat-lto-objects"'
|
||||
build_opts='-Dc_args=-flto=auto'
|
||||
else
|
||||
build_opts=''
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user