1. 30 Apr, 2018 1 commit
    • Yonghong Song's avatar
      fix compilation with latest clang/llvm 7.0 · 46ebd9ef
      Yonghong Song authored
      The bcc build with latest clang/llvm 7.0 has the following
      compilation error:
      
       /home/yhs/work/llvm/build/install/lib/libclangCodeGen.a(CodeGenAction.cpp.o):
        In function `clang::BackendConsumer::Initialize(clang::ASTContext&)':
        CodeGenAction.cpp:(.text._ZN5clang15BackendConsumer10InitializeERNS_10ASTContextE[_ZN5clang15BackendConsumer10InitializeERNS_10ASTContextE]+0xc): undefined reference to `clang::FrontendTimesIsEnabled'
       ...
      
      The latest clang defined clang::FrontendTimesIsEnabled in
      libclangFrontend.a and used in libclangCodeGen.a.
      
      Due to the library order specified in clang_libs.cmake:
        # order is important
        set(clang_libs
          ${libclangFrontend}
          ...
          ${libclangCodeGen}
      and the fact clang_libs here is used to build bcc-static,
      the definition of clang::FrontendTimesIsEnabled is dropped
      since nobody used it before the definition is checked by the compiler.
      
      The fix here is to keep all the definitions/uses for clang_libs/llvm_libs
      when buildint static library.
      
      Tested on clang 4.0, 5.0, 6.0 and latest 7.0, all works fine.
      Signed-off-by: default avatarYonghong Song <yhs@fb.com>
      46ebd9ef
  2. 29 Apr, 2018 6 commits
  3. 28 Apr, 2018 1 commit
  4. 27 Apr, 2018 5 commits
  5. 26 Apr, 2018 9 commits
  6. 25 Apr, 2018 4 commits
  7. 24 Apr, 2018 5 commits
  8. 23 Apr, 2018 1 commit
  9. 20 Apr, 2018 2 commits
  10. 19 Apr, 2018 4 commits
  11. 18 Apr, 2018 2 commits