Skip to content

Commit

Permalink
Fix build break due to new error
Browse files Browse the repository at this point in the history
  • Loading branch information
sbomer committed Apr 27, 2023
1 parent e78678d commit 9c4b94f
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,14 @@ add_dependencies(coreclrtraceptprovider generated_eventing_headers)

find_library(LTTNG NAMES lttng-ust)

# --noinhibit-exec works around error in lld from LLVM 16
# that is caused by invalid symbols in the lttng we are linking against:
# ld.lld: error: liblttng-ust.so: invalid local symbol '__stop___tracepoints_ptrs' in global part of symbol table
# see https://github.com/llvm/llvm-project/commit/3ac94280245415be66cb1b603367c5f4f6d498e7
target_link_libraries(coreclrtraceptprovider
PRIVATE
${LTTNG}
-Wl,--noinhibit-exec
)

set_target_properties(coreclrtraceptprovider PROPERTIES LINKER_LANGUAGE CXX)
Expand Down

0 comments on commit 9c4b94f

Please sign in to comment.