Skip to content

Commit 563f6c5

Browse files
authored
Try using ldflags to allow multiple definitions
1 parent a5250a7 commit 563f6c5

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

.github/workflows/Windows.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -357,6 +357,7 @@ jobs:
357357
mkdir build
358358
cd build
359359
$env:CPPINTEROP_BUILD_DIR="$env:PWD_DIR"
360+
$env:LDFLAGS="-Wl,--allow-multiple-definition"
360361
echo "CPPINTEROP_BUILD_DIR=$env:CPPINTEROP_BUILD_DIR"
361362
echo "CPPINTEROP_BUILD_DIR=$env:CPPINTEROP_BUILD_DIR" >> $env:GITHUB_ENV
362363
if ( "${{ matrix.cling }}" -imatch "On" )

lib/Interpreter/CMakeLists.txt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -136,9 +136,6 @@ else()
136136
${link_libs}
137137
)
138138
else()
139-
set_target_properties(clangCppInterOp PROPERTIES
140-
LINK_FLAGS "-Wl,--allow-multiple-definition"
141-
)
142139
llvm_add_library(clangCppInterOp
143140
DISABLE_LLVM_LINK_LLVM_DYLIB
144141
CppInterOp.cpp

0 commit comments

Comments
 (0)