[lldb-dev] Making LLVM_DEFAULT_TARGET_TRIPLE available to lldb's cmakery

Jim Ingham via lldb-dev lldb-dev at lists.llvm.org
Wed Oct 30 11:52:18 PDT 2019


Except of course without the comment markers...

> On Oct 30, 2019, at 11:36 AM, Jim Ingham <jingham at apple.com> wrote:
> 
> Anyway, another way to do this would be something like:
> 
> #if (${LLVM_DEFAULT_TARGET_TRIPLE})
>  string(REGEX MATCH "^[^-]*" LLDB_DEBUGSERVER_ARCH "${LLVM_DEFAULT_TARGET_TRIPLE}")
> #else()
> #  set(LLDB_DEBUGSERVER_ARCH "")  
> #endif()
> 



More information about the lldb-dev mailing list