File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -36,3 +36,14 @@ add_clang_library(clangInterpreter
36
36
clangSema
37
37
clangSerialization
38
38
)
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 ()
You can’t perform that action at this time.
0 commit comments