Skip to content

Conversation

@marcauberer
Copy link
Contributor

LLVM_DEFINITIONS is a string, not a list. This led to wrongly passed compile definition (like -D_GLIBCXX_USE_CXX11_ABI="0 -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS", where the value escaping is wrong). We stumbled over this by suddenly getting weird error messages, because we tried to set _GLIBCXX_USE_CXX11_ABI=0, but is was already set to "0 -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS" earlier.

This patch switches the define parsing like it is advised in the official LLVM documentation: https://llvm.org/docs/CMake.html#embedding-llvm-in-your-project

LLVM_DEFINITIONS is a string, not a list. This led to wrongly passed
compile definition. See
https://llvm.org/docs/CMake.html#embedding-llvm-in-your-project
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant