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
You need to sign in or sign up before continuing.
  • linux
  • tools
  • scripts
  • Makefile.include
Find file BlameHistoryPermalink
  • Adrian Ratiu's avatar
    tools: Fix unavoidable GCC call in Clang builds · 7fd9fd46
    Adrian Ratiu authored Mar 08, 2022
    In ChromeOS and Gentoo we catch any unwanted mixed Clang/LLVM
    and GCC/binutils usage via toolchain wrappers which fail builds.
    This has revealed that GCC is called unconditionally in Clang
    configured builds to populate GCC_TOOLCHAIN_DIR.
    
    Allow the user to override CLANG_CROSS_FLAGS to avoid the GCC
    call - in our case we set the var directly in the ebuild recipe.
    
    In theory Clang could be able to autodetect these settings so
    this logic could be removed entirely, but in practice as the
    commit cebdb737
    
     ("tools: Help cross-building with clang")
    mentions, this does not always work, so giving distributions
    more control to specify their flags & sysroot is beneficial.
    
    Suggested-by: default avatarManoj Gupta <manojgupta@chromium.com>
    Suggested-by: default avatarNathan Chancellor <nathan@kernel.org>
    Signed-off-by: default avatarAdrian Ratiu <adrian.ratiu@collabora.com>
    Signed-off-by: default avatarDaniel Borkmann <daniel@iogearbox.net>
    Acked-by: default avatarNathan Chancellor <nathan@kernel.org>
    Cc: Nick Desaulniers <ndesaulniers@google.com>
    Link: https://lore.kernel.org/lkml/87czjk4osi.fsf@ryzen9.i-did-not-set--mail-host-address--so-tickle-me
    Link: https://lore.kernel.org/bpf/20220308121428.81735-1-adrian.ratiu@collabora.com
    7fd9fd46
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7