“fc374821ddb9d40daaaf443c3d78ac2d3643ce03”上不存在“paddle/fluid/operators/elementwise/elementwise_min_op.cc”
提交 f386742c 编写于 作者: A Alessandro Ghedini 提交者: Rich Salz

GH429: Add clang to travis

Signed-off-by: NRich Salz <rsalz@akamai.com>
Reviewed-by: NAndy Polyakov <appro@openssl.org>
上级 2d2a8354
language: c language: c
addons: addons:
apt_packages: apt:
- binutils-mingw-w64 packages:
- gcc-mingw-w64 - gcc-5
- binutils-mingw-w64
- gcc-mingw-w64
sources:
- ubuntu-toolchain-r-test
os: os:
- linux - linux
...@@ -12,6 +16,7 @@ os: ...@@ -12,6 +16,7 @@ os:
compiler: compiler:
- clang - clang
- gcc - gcc
- gcc-5
- i686-w64-mingw32-gcc - i686-w64-mingw32-gcc
- x86_64-w64-mingw32-gcc - x86_64-w64-mingw32-gcc
...@@ -21,7 +26,13 @@ env: ...@@ -21,7 +26,13 @@ env:
- CONFIG_OPTS="--debug --strict-warnings" - CONFIG_OPTS="--debug --strict-warnings"
matrix: matrix:
include:
- os: linux
compiler: gcc-5
env: CONFIG_OPTS="--debug --strict-warnings -fsanitize=address"
exclude: exclude:
- os: osx
compiler: gcc-5
- os: osx - os: osx
compiler: i686-w64-mingw32-gcc compiler: i686-w64-mingw32-gcc
- os: osx - os: osx
......
...@@ -1640,7 +1640,7 @@ if ($strict_warnings) ...@@ -1640,7 +1640,7 @@ if ($strict_warnings)
my $ecc = $cc; my $ecc = $cc;
$ecc = "clang" if `$cc --version 2>&1` =~ /clang/; $ecc = "clang" if `$cc --version 2>&1` =~ /clang/;
my $wopt; my $wopt;
die "ERROR --strict-warnings requires gcc or clang" unless ($ecc =~ /gcc$/ or $ecc =~ /clang$/); die "ERROR --strict-warnings requires gcc or clang" unless ($ecc =~ /gcc(-\d(\.\d)*)?$/ or $ecc =~ /clang$/);
foreach $wopt (split /\s+/, $gcc_devteam_warn) foreach $wopt (split /\s+/, $gcc_devteam_warn)
{ {
$cflags .= " $wopt" unless ($cflags =~ /$wopt/) $cflags .= " $wopt" unless ($cflags =~ /$wopt/)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册