aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Lex/HeaderSearch.cpp
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2023-05-26 22:09:39 +0000
committerMartin Storsjö <martin@martin.st>2023-05-28 13:16:53 +0300
commit592e935e115ffb451eb9b782376711dab6558fe0 (patch)
treed97fe815fe9c4797b2675a699a8441593c031a47 /clang/lib/Lex/HeaderSearch.cpp
parent9efa4cdb5169ef77e6250473574980e7438fcf42 (diff)
downloadllvm-592e935e115ffb451eb9b782376711dab6558fe0.zip
llvm-592e935e115ffb451eb9b782376711dab6558fe0.tar.gz
llvm-592e935e115ffb451eb9b782376711dab6558fe0.tar.bz2
[clang-repl] Fix REPL_EXTERNAL_VISIBILITY and building libclang-cpp.dll for MinGW configurations
This fixes two issues that are observed after 5111286f06e1e10f24745007a45a830760f1790c: For builds with GCC with LLVM_LINK_LLVM_DYLIB=ON, we previously got build errors, as libclang-cpp.dll suddenly only contained the functions that were marked dllexport via REPL_EXTERNAL_VISIBILITY, instead of all symbols as expected. For MinGW builds with Clang, building previously succeeded (as it used either the __attribute__((visibility("default"))) annotation or nothing at all), and the functions were exported from libclang-cpp.dll if that was built, but the unit test failed (as neither of those cases made the functions exported from an EXE). Don't use the visibility attributes on MinGW targets for these purposes; setting default visibility only makes a difference if building with e.g. -fvisibility=hidden, but it doesn't make the symbols exported from an EXE. Differential Revision: https://reviews.llvm.org/D151620
Diffstat (limited to 'clang/lib/Lex/HeaderSearch.cpp')
0 files changed, 0 insertions, 0 deletions