Skip to content

Commit 20acd70

Browse files
committed
[JSBackend] don't use dllexport
1 parent d7c7262 commit 20acd70

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/Target/JSBackend/Relooper.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,11 @@ struct Debugging {
344344

345345
// C API - useful for binding to other languages
346346

347-
#ifdef _WIN32
347+
// #ifdef _WIN32
348+
// Any item marked as dllexport causes the mingw linker to no longer export
349+
// unmarked symbols, which causes build problems for rustc, so make sure
350+
// all symbols are unmarked.
351+
#if 0
348352
#ifdef RELOOPERDLL_EXPORTS
349353
#define RELOOPERDLL_API __declspec(dllexport)
350354
#else

0 commit comments

Comments
 (0)