1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 04:02:41 +01:00
llvm-mirror/cmake
Markus Böck db4a145be0 [CMake] Add LIBXML2_DEFINITIONS when testing for symbol existance
Currently when linking LLVM against Libxml2, a simple check is performed to check whether it can be linked successfully. This check currently adds the include directories and the libraries for libxml2, but not definitions found by the config.

This causes issues on Windows when trying to link against a static libxml2. Libxml2 requires LIBXML_STATIC to be defined in the preprocessor to be able to link statically. This definition is put into LIBXML2_DEFINITIONS in the cmake config, but not properly forwarded to check_symbol_exists leading to it failing as it could not find xmlReadMemory in a DLL.

This patch simply appends the content of LIBXML2_DEFINITIONS to the symbol check definitions, fixing the issue.

Differential Revision: https://reviews.llvm.org/D106740
2021-07-24 09:55:14 +02:00
..
modules [CMake] Don't LTO optimize targets on Darwin, but only if its not ThinLTO 2021-07-23 22:38:35 -07:00
platforms
config-ix.cmake [CMake] Add LIBXML2_DEFINITIONS when testing for symbol existance 2021-07-24 09:55:14 +02:00
config.guess
dummy.cpp
nsis_icon.ico
nsis_logo.bmp
README
unwind.h

See docs/CMake.html for instructions on how to build LLVM with CMake.