[PATCH v5] Add TEST_CC and TEST_CXX support

H.J. Lu hjl.tools@gmail.com
Wed Dec 11 06:18:46 GMT 2024


On Tue, Dec 10, 2024 at 1:04 AM Joseph Myers <josmyers@redhat.com> wrote:
>
> There seems to be a lot of repetitive code to run particular configure
> tests with multiple compilers.  As a first step I think we should have a
> macro like
>
> LIBC_CHECK_TEST_CC([code-if-TEST_CC-equals-CC], [code-to-run-test])
>
> which automatically handles the saving and restoring of CC (make sure to
> properly quote the arguments on all calls to LIBC_CHECK_TEST_CC).
>
> As a second step, there could then be a macro that runs a test both with
> the normal CC and with TEST_CC and then copies results to both the cache
> variable and any separate output variable, for both the normal and test
> compilers.

Implemented in v6.

> --
> Joseph S. Myers
> josmyers@redhat.com
>


-- 
H.J.


More information about the Libc-alpha mailing list