[PATCH v5] Add TEST_CC and TEST_CXX support
Carlos O'Donell
carlos@redhat.com
Mon Dec 9 21:15:39 GMT 2024
On 12/6/24 4:54 PM, H.J. Lu wrote:
> Changes in v5:
>
> 1. Fix a typo.
> 2. Update sysdeps/x86_64/configure.ac for GCC 6
>
> ---
My apologies, but this breaks pre-commit CI because this cannot be applied with `git am`
You are both attaching patches *and* using "---" to split which means we cannot use
"--empty=drop" during git am application.
If you are attaching files as patches please include all descriptions in the patch and
do not use the "---" here which git considers a split.
> Support testing glibc build with a different C compiler or a different
> C++ compiler with
>
> $ ../glibc-VERSION/configure TEST_CC="gcc-6.4.1" TEST_CXX="g++-6.4.1"
>
> 1. Also check compiler options with TEST_CC and TEST_CXX.
> 2. Add check and xcheck targets to Makefile.in and override build compiler
> options with ones from TEST_CC and TEST_CXX.
>
> Tested on Fedora 41/x86-64:
>
> 1. Building with GCC 14.2.1 and testing with GCC 6.4.1 and GCC 11.2.1.
> 2. Building with GCC 15 and testing with GCC 6.4.1.
>
> Support for GCC versions older than GCC 6.2 may need to change the test
> sources. Other targets may need to update configure.ac under sysdeps and
> modify Makefile.in to override target build compiler options.
>
>
--
Cheers,
Carlos.
More information about the Libc-alpha
mailing list