summarylogtreecommitdiffstats
path: root/repl_swift-dl.patch
blob: cf0b0e8477b2a4ffb84ba825e103926f0af5d3b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
diff -rupN a/tools/repl/swift/CMakeLists.txt b/tools/repl/swift/CMakeLists.txt
--- a/tools/repl/swift/CMakeLists.txt	2019-09-22 09:58:11.416432071 -0700
+++ b/tools/repl/swift/CMakeLists.txt	2019-09-22 09:58:36.799766163 -0700
@@ -19,6 +19,8 @@ add_lldb_tool(repl_swift
   main.c
   )
 
+target_link_libraries(repl_swift PRIVATE dl)
+
 # The dummy repl executable is a C program, but we always look for a mangled
 # swift symbol (corresponding to main). If we build the repl with debug info,
 # the debugger looks at the frame language (looking up the compile unit) and gets