Skip to content

Instantly share code, notes, and snippets.

@tonylambiris
Created January 18, 2018 21:37
Show Gist options
  • Select an option

  • Save tonylambiris/dfc2b5e729eb702555810d20e0dc8e88 to your computer and use it in GitHub Desktop.

Select an option

Save tonylambiris/dfc2b5e729eb702555810d20e0dc8e88 to your computer and use it in GitHub Desktop.
fix_build_issue_for_llvm_5.0.1.patch
--- bcc-0.5.0/cmake/clang_libs.cmake.orig 2018-01-18 16:32:18.469420711 -0500
+++ bcc-0.5.0/cmake/clang_libs.cmake 2018-01-18 16:32:27.272819352 -0500
@@ -8,7 +8,7 @@
if (${_llvm_coroutines} GREATER -1)
list(APPEND llvm_raw_libs coroutines)
endif()
-if (${LLVM_PACKAGE_VERSION} VERSION_GREATER "5")
+if (${LLVM_PACKAGE_VERSION} VERSION_EQUAL 6 OR ${LLVM_PACKAGE_VERSION} VERSION_GREATER 6)
list(APPEND llvm_raw_libs bpfasmparser)
list(APPEND llvm_raw_libs bpfdisassembler)
endif()
--- bcc-0.5.0/src/cc/CMakeLists.txt.orig 2018-01-18 16:32:24.246130233 -0500
+++ bcc-0.5.0/src/cc/CMakeLists.txt 2018-01-18 16:32:27.272819352 -0500
@@ -29,7 +29,7 @@
set_target_properties(bpf-shared PROPERTIES OUTPUT_NAME bpf)
set(bcc_common_sources bpf_common.cc bpf_module.cc exported_files.cc)
-if (${LLVM_PACKAGE_VERSION} VERSION_GREATER "5")
+if (${LLVM_PACKAGE_VERSION} VERSION_EQUAL 6 OR ${LLVM_PACKAGE_VERSION} VERSION_GREATER 6)
set(bcc_common_sources ${bcc_common_sources} bcc_debug.cc)
endif()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment