[libcxx-commits] [libcxx] [libcxx][libcxxabi][libunwind] Support target-specific flags for tests (PR #65517)

Alexander Richardson via libcxx-commits libcxx-commits at lists.llvm.org
Wed Sep 6 11:56:40 PDT 2023


arichardson wrote:

I am also considering adding parameters for `%{compile_flags}` and `%{link_flags}` that could be defaulted to the values commonly set by CMake cross-compilation toolchain files. E.g. something like the following
```
if (CMAKE_CXX_FLAGS_INIT)
  serialize_lit_param(target_compile_flags "\"${CMAKE_CXX_FLAGS_INIT}\"")
endif()
if (CMAKE_EXE_LINKER_FLAGS_INIT)
  serialize_lit_param(target_link_flags "\"${CMAKE_EXE_LINKER_FLAGS_INIT}\"")
endif()
```




https://github.com/llvm/llvm-project/pull/65517


More information about the libcxx-commits mailing list