Skip to content

Commit 35f3049

Browse files
author
git apple-llvm automerger
committed
Merge commit '910748f4ec5a' from llvm.org/release/17.x into stable/20230725
2 parents 150de85 + 910748f commit 35f3049

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

clang/lib/Interpreter/CMakeLists.txt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,14 @@ add_clang_library(clangInterpreter
3636
clangSema
3737
clangSerialization
3838
)
39+
40+
if ((MINGW OR CYGWIN) AND BUILD_SHARED_LIBS)
41+
# The DLLs are supposed to export all symbols (except for ones that are
42+
# explicitly hidden). Normally, this is what happens anyway, but if there
43+
# are symbols that are marked explicitly as dllexport, we'd only export them
44+
# and nothing else. The Interpreter contains a few cases of such dllexports
45+
# (for symbols that need to be exported even from standalone exe files);
46+
# therefore, add --export-all-symbols to make sure we export all symbols
47+
# despite potential dllexports.
48+
target_link_options(clangInterpreter PRIVATE LINKER:--export-all-symbols)
49+
endif()

0 commit comments

Comments
 (0)