================
@@ -88,8 +88,18 @@ extern "C"
// TODO: dlsym won't work on Windows.
void *dlsym(void* handle, const char* symbol);
int (*ptr__tsan_get_report_loc_object_type)(void *report, unsigned long
idx, const char **object_type);
-}
+)"
+#if defined(__linux__)
----------------
Michael137 wrote:
> What is the solution here if you wanted it to be dynamic, is it a lot of
> work? For some definition of "a lot", we can be ok with this as a known
> limitation.
Looked at this again and I was wrong. We actually do correctly initialise the
preprocessor depending on the target triple. We set up the `TargetOptions`
based on the target triple. Clang's pre-processor initialisation takes those
options and defines the builtin macros according to that triple.
So TL;DR, moving the define into the expression should work!
https://github.com/llvm/llvm-project/pull/181004
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits