On Tue, 14 Feb 2023 14:32:10 GMT, Julian Waters <jwat...@openjdk.org> wrote:
> Full details in linked entry, man did this give me a scare on my local branch > > All C++ compilers for the build operating system are under the name c++ (when > selected compiler is gcc), but when searching for BUILD_CXX the compiler > given priority is an uppercase CC, and then g++, which is not correct since > this simply links to the C compiler instead Erik is probably right that this was created for Solaris, but using "CC" (in upper case) is afaik a long-standing Unix tradition. It is a bit hard too google, but see e.g. https://users.cs.cf.ac.uk/dave/C/node3.html#SECTION00312000000000000000. I think we should not remove it, but we might add other aliases, and we might discuss the order. I agree with Erik that trying the g++ explicitly first is a good idea. I think we should keep CC, but it can be lower priority, so in that case the preferred order would be `g++ c++ CC`. But I am also curious to what problem you experienced? ------------- PR: https://git.openjdk.org/jdk/pull/12558