I am curious on the status of when sonar-scanner will be supported on Apple’s M1/M2 arm64 architecture. We’re using Apple’s silicon in CI to build and scan swift and we’re currently using Rosetta to get around the lack of support.
I also have a follow up question. The scanner is essentially a shell wrapper that uses provided x86_64 JRE to run. Looking at the script, here’s an interesting set of lines from the script:
use_embedded_jre=true if [ "$use_embedded_jre" = true ]; then export JAVA_HOME="$sonar_scanner_home/jre" fi
This is forcing the use of the provided x86_64 JRE. I am curious what the implications would be if I were to disable this and force the use of already installed arm64 JRE? I did try it and the scanner works in our environment but since I didn’t test it across various languages and with different profiles, I suspect the situation is a bit more nuanced.
If this setting were exposed as an option to the user, could this be an option for Apple silicon users for now until the full support is provided? Feature request for the scanner?