Hello
Environment:
SonarScanner 5.0.1.3006
Java 17.0.7 Eclipse Adoptium (64-bit)
Linux 5.15.167.4-microsoft-standard-WSL2 amd64
When running sonar-scanner with our qnx 7.1 compiler it wants to probe the compiler with:
Probing compiler: [x86_64-pc-nto-qnx7.1.0-g++, -x, c++, --std, c++17, --stdlib, libc++, --sysroot=[path]/target/qnx7/x86_64, -v, -dM, -E, -]
But errors out with:
x86_64-pc-nto-qnx7.1.0-g++: error: unrecognized command line option ‘–stdlib’; did you mean ‘-nostdlib’?
We do use “-stdlib=libc++” in our compiler arguments, and the compile_commands.json used by the sanner reflect this:
…
“-stdlib=libc++”,
…
But somehow the scanner translates “-stdlib=libc++” to “–stdlib libc++” (double dash and no equals sign) which the compiler clearly does not like.
Is this an error on our side or an error in the scanner?
Regards
Klaus