Cfamily build-wrapper NOT support probing android prebuilts style clang toolchain

cfamily build-wrapper NOT support probing android prebuilts style clang toolchain:
build-wrapper-dump.json NOT captures any compiler

  • versions used (SonarQube 8.9 LTS, Scanner 4.6.2)
  • error observed (android aosp clang toolchain also wrap of clang.real, and real call flow is clang=>clang.real=>clang-11)
/prebuilts/clang/host/linux-x86/clang-r383902b/bin$ ll clang*
clang*
clang++*
clang-11*
clang-check*
clang-cl -> clang*
clang-format*
clang.real -> clang-11*
clang++.real -> clang.real*
clang-tidy*
clang-tidy.real*
  • potential workaround (very clear, NOT wrap clang.real, make clang is real clang-11)
cp clang-11 clang

P.S.: i do NOT know build-wrapper rule how to probing compiler, whether make this rule configurable, now build-wrapper ONLY support one param --out-dir

$ build-wrapper --help
build-wrapper, version 6.20 (linux-x86)
Copyright (C) 2014-2021 SonarSource SA, info@sonarsource.com
Usage: build-wrapper --out-dir <output directory> <build command>

Hi @lcttmc ,

for your use case, I invite you to use the JSON Compilation Database as a configuration for the analysis. If you can use SonarQube > 8.9 LTS you have the support by default. If you have to stay to 8.9 you can use the workaround described in CPP-1428.