Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • L linux
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Kirill Smelkov
  • linux
  • Repository
  • linux
  • tools
  • perf
  • util
  • c++
  • clang.cpp
Find file BlameHistoryPermalink
  • Guilherme Amadio's avatar
    perf clang: Fix header include for LLVM >= 14 · d22588d7
    Guilherme Amadio authored Apr 16, 2022
    
    
    The header TargetRegistry.h has moved in LLVM/clang 14.
    
    Committer notes:
    
    The problem as noticed when building in ubuntu:22.04:
    
        90    98.61 ubuntu:22.04                  : FAIL gcc version 11.2.0 (Ubuntu 11.2.0-19ubuntu1)
          util/c++/clang.cpp:23:10: fatal error: llvm/Support/TargetRegistry.h: No such file or directory
             23 | #include "llvm/Support/TargetRegistry.h"
                |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          compilation terminated.
    
    Fixed after applying this patch.
    
    Reported-by: default avatarArnaldo Carvalho de Melo <acme@kernel.org>
    Signed-off-by: default avatarGuilherme Amadio <amadio@gentoo.org>
    Tested-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
    Link: https://twitter.com/GuilhermeAmadio/status/1514970524232921088
    Link: http://lore.kernel.org/lkml/Ylp0M/VYgHOxtcnF@gentoo.org
    
    
    Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
    d22588d7
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7