Make install_jerry work with MinGW (#4517)

On windows, the generator can be Visual Studio or Ninja, when targeting mingw,
the generator can be Ninja or Makefile, they both use 'install' instead MSVC 'INSTALL',
so check the solution file for MSVC

JerryScript-DCO-1.0-Signed-off-by: Yonggang Luo [email protected]
This commit is contained in:
Yonggang Luo authored and GitHub committed 2021-02-04 13:15:07 +01:00
1 parent 982cd08083
commit 9dbb594170
1 file changed
+1 -1
+1 -1
View File
@@ -269,7 +269,7 @@ def make_jerry(arguments):
return proc.returncode
def install_jerry(arguments):
install_target = 'INSTALL' if sys.platform == 'win32' else 'install'
install_target = 'INSTALL' if os.path.exists(os.path.join(arguments.builddir, 'Jerry.sln')) else 'install'
make_cmd = ['cmake', '--build', arguments.builddir, '--config', arguments.build_type, '--target', install_target]
return subprocess.call(make_cmd)