From f799ad3b143a1a2f7eef33c5edaf581fe1fe3fb8 Mon Sep 17 00:00:00 2001 From: mpeterv Date: Sat, 5 Dec 2015 20:22:03 +0300 Subject: [PATCH] Add pseudo target 'cl' for Windows using cl.exe Use it only for LuaJIT for now. --- hererocks.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/hererocks.py b/hererocks.py index 0b7e209..13705eb 100755 --- a/hererocks.py +++ b/hererocks.py @@ -529,7 +529,12 @@ class LuaJIT(Lua): @staticmethod def make(): - run_command("make", "PREFIX=" + quote(opts.location)) + if os.name == "nt" and opts.target == "cl": + os.chdir("src") + run_command("msvcbuild.bat") + os.chdir("..") + else: + run_command("make", "PREFIX=" + quote(opts.location)) def make_install(self): run_command("make install", "PREFIX=" + quote(opts.location),