On Mon, 1 Feb 2021 16:17:35 GMT, Alexey Semenyuk <asemen...@openjdk.org> wrote:

> "common" was perfectly enough until this change. Unfortunately we cant just 
> drop new C sources in "common" dir because we don't want them to be compiled 
> with g++. That is why need new common directory (applauncherlibcommon) for C 
> sources.

We pick compiler based on file suffix, not directory, so it shouldn't matter 
where you put a .c file, it should always be compiled with gcc and .cpp files 
with g++. Which compiler is used to launch the linker can however differ. 
That's configured for each SetupNativeCompilation call with the different 
TOOLCHAIN settings.

-------------

PR: https://git.openjdk.java.net/jdk/pull/2320

Reply via email to