Skip to content

Commit 1069aae

Browse files
committed
only add comdat when using MSVC to work around linker limitation
1 parent 02ac2b1 commit 1069aae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/jitlayers.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -539,7 +539,7 @@ ExecutionEngine *jl_ExecutionEngine;
539539
template<class T> // for GlobalObject's
540540
static T *addComdat(T *G)
541541
{
542-
#if defined(_OS_WINDOWS_)
542+
#if defined(_OS_WINDOWS_) && defined(_COMPILER_MICROSOFT_)
543543
if (imaging_mode && !G->isDeclaration()) {
544544
#ifdef LLVM35
545545
// Add comdat information to make MSVC link.exe happy

0 commit comments

Comments
 (0)