@@ -670,6 +670,10 @@ task:
670
670
ccache_cache :
671
671
folder : $CCACHE_DIR
672
672
673
+ ccache_stats_start_script :
674
+ ccache -s
675
+ ccache -z
676
+
673
677
setup_additional_packages_script : |
674
678
#apt-get update
675
679
#DEBIAN_FRONTEND=noninteractive apt-get -y install ...
@@ -678,81 +682,73 @@ task:
678
682
# Test that code can be built with gcc/clang without warnings
679
683
# ##
680
684
681
- setup_script : echo "COPT=-Werror" > src/Makefile.custom
682
-
683
685
# Trace probes have a history of getting accidentally broken. Use the
684
686
# different compilers to build with different combinations of dtrace on/off
685
687
# and cassert on/off.
686
688
687
689
# gcc, cassert off, dtrace on
688
690
always :
689
691
gcc_warning_script : |
690
- time ./configure \
691
- --cache gcc.cache \
692
- --enable-dtrace \
693
- ${LINUX_CONFIGURE_FEATURES} \
694
- CC="ccache gcc" CXX="ccache g++" CLANG="ccache clang"
695
- make -s -j${BUILD_JOBS} clean
696
- time make -s -j${BUILD_JOBS} world-bin
692
+ mkdir build-gcc && cd build-gcc
693
+ CC="ccache gcc" CXX="ccache g++" \
694
+ meson setup \
695
+ -Dwerror=true \
696
+ -Dcassert=false \
697
+ -Ddtrace=enabled \
698
+ ${LINUX_MESON_FEATURES} \
699
+ ..
700
+ time ninja -j${BUILD_JOBS}
697
701
698
702
# gcc, cassert on, dtrace off
699
703
always :
700
704
gcc_a_warning_script : |
701
- time ./configure \
702
- --cache gcc.cache \
703
- --enable-cassert \
704
- ${LINUX_CONFIGURE_FEATURES} \
705
- CC="ccache gcc" CXX="ccache g++" CLANG="ccache clang"
706
- make -s -j${BUILD_JOBS} clean
707
- time make -s -j${BUILD_JOBS} world-bin
705
+ cd build-gcc
706
+ meson configure \
707
+ -Dcassert=true \
708
+ -Ddtrace=disabled
709
+ time ninja -j${BUILD_JOBS}
708
710
709
711
# clang, cassert off, dtrace off
710
712
always :
711
713
clang_warning_script : |
712
- time ./configure \
713
- --cache clang.cache \
714
- ${LINUX_CONFIGURE_FEATURES} \
715
- CC="ccache clang" CXX="ccache clang++" CLANG="ccache clang"
716
- make -s -j${BUILD_JOBS} clean
717
- time make -s -j${BUILD_JOBS} world-bin
714
+ mkdir build-clang && cd build-clang
715
+ CC="ccache clang" CXX="ccache clang++" \
716
+ meson setup \
717
+ -Dwerror=true \
718
+ -Dcassert=false \
719
+ -Ddtrace=disabled \
720
+ ${LINUX_MESON_FEATURES} \
721
+ ..
722
+ time ninja -j${BUILD_JOBS}
718
723
719
724
# clang, cassert on, dtrace on
720
725
always :
721
726
clang_a_warning_script : |
722
- time ./configure \
723
- --cache clang.cache \
724
- --enable-cassert \
725
- --enable-dtrace \
726
- ${LINUX_CONFIGURE_FEATURES} \
727
- CC="ccache clang" CXX="ccache clang++" CLANG="ccache clang"
728
- make -s -j${BUILD_JOBS} clean
729
- time make -s -j${BUILD_JOBS} world-bin
727
+ cd build-clang
728
+ meson configure \
729
+ -Dcassert=true \
730
+ -Ddtrace=enabled
731
+ time ninja -j${BUILD_JOBS}
730
732
731
733
# cross-compile to windows
732
734
always :
733
735
mingw_cross_warning_script : |
734
- time ./configure \
735
- --host=x86_64-w64-mingw32 \
736
- --enable-cassert \
737
- --without-icu \
738
- CC="ccache x86_64-w64-mingw32-gcc" \
739
- CXX="ccache x86_64-w64-mingw32-g++"
740
- make -s -j${BUILD_JOBS} clean
741
- time make -s -j${BUILD_JOBS} world-bin
736
+ mkdir build-w64 && cd build-w64
737
+ meson setup \
738
+ --cross-file=../src/tools/ci/linux-mingw-w64-64bit.txt \
739
+ -Dwerror=true \
740
+ -Dcassert=true \
741
+ ..
742
+ time ninja -j${BUILD_JOBS}
742
743
743
744
# ##
744
745
# Verify docs can be built
745
746
# ##
746
747
# XXX: Only do this if there have been changes in doc/ since last build
747
748
always :
748
749
docs_build_script : |
67F4
div>
749
- time ./configure \
750
- --cache gcc.cache \
751
- CC="ccache gcc" \
752
- CXX="ccache g++" \
753
- CLANG="ccache clang"
754
- make -s -j${BUILD_JOBS} clean
755
- time make -s -j${BUILD_JOBS} -C doc
750
+ cd build-gcc
751
+ time ninja docs
756
752
757
753
# ##
758
754
# Verify headerscheck / cpluspluscheck succeed
@@ -765,15 +761,19 @@ task:
765
761
# ##
766
762
always :
767
763
headers_headerscheck_script : |
768
- time ./configure \
764
+ mkdir build-ac && cd build-ac
765
+ time ../configure \
769
766
${LINUX_CONFIGURE_FEATURES} \
770
767
--without-icu \
771
768
--quiet \
772
- CC="gcc" CXX"= g++" CLANG="clang"
773
- make -s -j${BUILD_JOBS} clean
769
+ CC="gcc" CXX=" g++" CLANG="clang"
770
+ make -s -j${BUILD_JOBS} world-bin
774
771
time make -s headerscheck EXTRAFLAGS='-fmax-errors=10'
775
772
headers_cpluspluscheck_script : |
773
+ cd build-ac
776
774
time make -s cpluspluscheck EXTRAFLAGS='-fmax-errors=10'
777
775
778
776
always :
777
+ ccache_stats_end_script :
778
+ ccache -s
779
779
upload_caches : ccache
0 commit comments