Open
Description
So, the native-image uses the Visual Studio compiler
To use this compiler, we can launch a new terminal with
Or we can use an existing terminal by running C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvars64.bat
(or a similar path to this)
However, when using Intellij IDEA with this plugin, the environment is not set by default, making the compilation not usable as is
My solution would be to add an option inside the graalvmNative
of build.gradle
that would look something like
graalvmNative {
vsToolsPath = "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvars64.bat"
}
And that runs the corresponding script to enable the environment before building
(sorry if there's already an alternative, I did not manage to find an easy one)