From 2019ef4f65adcd29fb0424e6f806db9a4c14b9c8 Mon Sep 17 00:00:00 2001 From: mpeterv Date: Wed, 2 Mar 2016 18:51:43 +0300 Subject: [PATCH] Autodetect cl target under Windows --- hererocks.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hererocks.py b/hererocks.py index e94f957..cbc08f5 100755 --- a/hererocks.py +++ b/hererocks.py @@ -5,6 +5,7 @@ from __future__ import print_function import argparse +import distutils import os import re import shutil @@ -28,7 +29,7 @@ temp_dir = None platform_to_lua_target = { "linux": "linux", - "win": "mingw", + "win": "cl" if os.name == "nt" or distutils.spawn.find_executable("cl") else "mingw", "darwin": "macosx", "freebsd": "freebsd" }