diff options
author | Petr Hosek <phosek@google.com> | 2020-08-19 10:33:03 -0700 |
---|---|---|
committer | Petr Hosek <phosek@google.com> | 2020-08-19 10:33:03 -0700 |
commit | 8e4acb82f71ad4effec8895b8fc957189ce95933 (patch) | |
tree | 2fcae10d74bc345b7b1a4d20728a95d39bd667ad /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | 495f91fd33d492941c39424a32cf24bcfe192f35 (diff) | |
download | llvm-8e4acb82f71ad4effec8895b8fc957189ce95933.zip llvm-8e4acb82f71ad4effec8895b8fc957189ce95933.tar.gz llvm-8e4acb82f71ad4effec8895b8fc957189ce95933.tar.bz2 |
[CMake] Fix OCaml build failure because of absolute path in system libs
D85820 introduced a full path in the LLVM_SYSTEM_LIBS property of the
LLVMSupport target, which made the OCaml bindings fail to build, since
they use -l [system_lib] flags for every lib in LLVM_SYSTEM_LIBS, which
cannot work with absolute paths.
This patch solves the issue in a similar vain as ZLIB does it: it adds
the full library path to imported_libs, and adds a stripped down version
without directories, lib prefix and lib suffix to system_libs
In the future we should probably make some changes to LLVM_SYSTEM_LIBS,
since both zlib and ncurses do not necessarily have to be system libs
anymore due to the find_package / find_library bits introduced in
D85820 and D79219.
Patch By: haampie
Differential Revision: https://reviews.llvm.org/D86134
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions