[Libclc-dev] [PATCH 1/2] travis: Use gcc-6 for llvm-7 build

Jan Vesely via Libclc-dev libclc-dev at lists.llvm.org
Tue Mar 12 22:31:48 PDT 2019


On Tue, 2019-03-12 at 21:45 -0700, Tom Stellard wrote:
> On 01/14/2019 01:54 PM, Jan Vesely via Libclc-dev wrote:
> > llvm does not expose -std=c++11 in cxx flags.
> > gcc-6 switched default from c++98 to c++14
> 
> So does this mean libclc will be compiled with -std=c++14 now in the
> travis builds?

Yes, the 'prepare_builtins' helper tool will be built using c++14.
Ubuntu has a habit of shipping llvm that was not built using system's
default c++ compiler, so 'llvm-config --cxxflags' usually kills it.

Jan

> 
> -Tom
> 
> > Signed-off-by: Jan Vesely <jan.vesely at rutgers.edu>
> > ---
> >  .travis.yml | 12 ++++--------
> >  1 file changed, 4 insertions(+), 8 deletions(-)
> > 
> > diff --git a/.travis.yml b/.travis.yml
> > index abdcf58..d4798fa 100644
> > --- a/.travis.yml
> > +++ b/.travis.yml
> > @@ -78,8 +78,7 @@ matrix:
> >          - LLVM_VERSION=7
> >          - LLVM_CONFIG="llvm-config-${LLVM_VERSION}"
> >          - CHECK_FILES="barts-r600--.bc cayman-r600--.bc cedar-r600--.bc cypress-r600--.bc tahiti-amdgcn--.bc amdgcn--amdhsa.bc tahiti-amdgcn-mesa-mesa3d.bc nvptx--nvidiacl.bc nvptx64--nvidiacl.bc"
> > -        # llvm passes -Werror=date-time which is only supported in gcc-4.9+
> > -        - MATRIX_EVAL="CC=gcc-4.9 && CXX=g++-4.9"
> > +        - MATRIX_EVAL="CC=gcc-6 && CXX=g++-6"
> >        addons:
> >          apt:
> >            sources:
> > @@ -88,8 +87,7 @@ matrix:
> >              - ubuntu-toolchain-r-test
> >            packages:
> >              - libedit-dev
> > -            # LLVM-7 needs libstdc++4.9
> > -            - g++-4.9
> > +            - g++-6
> >              # From sources above
> >              - llvm-7-dev
> >              - clang-7
> > @@ -162,8 +160,7 @@ matrix:
> >          - LLVM_VERSION=7
> >          - LLVM_CONFIG="llvm-config-${LLVM_VERSION}"
> >          - CHECK_FILES="barts-r600--.bc cayman-r600--.bc cedar-r600--.bc cypress-r600--.bc tahiti-amdgcn--.bc amdgcn--amdhsa.bc tahiti-amdgcn-mesa-mesa3d.bc nvptx--nvidiacl.bc nvptx64--nvidiacl.bc"
> > -        # llvm passes -Werror=date-time which is only supported in gcc-4.9+
> > -        - MATRIX_EVAL="CC=gcc-4.9 && CXX=g++-4.9"
> > +        - MATRIX_EVAL="CC=gcc-6 && CXX=g++-6"
> >        addons:
> >          apt:
> >            sources:
> > @@ -172,8 +169,7 @@ matrix:
> >              - ubuntu-toolchain-r-test
> >            packages:
> >              - libedit-dev
> > -            # LLVM-7 needs libstdc++4.9
> > -            - g++-4.9
> > +            - g++-6
> >              # From sources above
> >              - llvm-7-dev
> >              - clang-7
> > 

-- 
Jan Vesely <jan.vesely at rutgers.edu>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part
URL: <http://lists.llvm.org/pipermail/libclc-dev/attachments/20190313/4b6e3fb2/attachment-0001.sig>


More information about the Libclc-dev mailing list