[libcxx-commits] [PATCH] D137110: [libc++] Option to specify a different compiler for testing

Petr Hosek via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Tue Nov 1 10:49:50 PDT 2022


phosek added a comment.

In D137110#3899667 <https://reviews.llvm.org/D137110#3899667>, @hubert.reinterpretcast wrote:

> In D137110#3899449 <https://reviews.llvm.org/D137110#3899449>, @ldionne wrote:
>
>> But first, I'd like to understand why you're not setting `CMAKE_CXX_COMPILER` to the compiler you're trying to run the tests with?
>
> Is my understanding correct that changing `CMAKE_CXX_COMPILER` also changes the build compiler for the shared libraries?
> The intention is to build using a "stable" compiler, but still allow testing with a compiler under development.

What's the use case? I find this potentially problematic. What if the compiler specified for running tests with doesn't support the same set of flags as the one used for building?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D137110/new/

https://reviews.llvm.org/D137110



More information about the libcxx-commits mailing list