Add pseudo target 'cl' for Windows using cl.exe

Use it only for LuaJIT for now.
This commit is contained in:
mpeterv 2015-12-05 20:22:03 +03:00
parent 20a64af4bc
commit f799ad3b14

View File

@ -529,7 +529,12 @@ class LuaJIT(Lua):
@staticmethod @staticmethod
def make(): 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): def make_install(self):
run_command("make install", "PREFIX=" + quote(opts.location), run_command("make install", "PREFIX=" + quote(opts.location),