3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-10 19:27:06 +00:00

Install target fix for ocamlfind_install on Windows.

Relates to #409
This commit is contained in:
Christoph M. Wintersteiger 2016-02-09 19:58:52 +00:00
parent 4ba744987d
commit a16f524eae

View file

@ -3650,10 +3650,15 @@ class MakeRuleCmd(object):
assert not ' ' in dir
install_root = cls._install_root(dir, in_prefix, out)
cls.write_cmd(out, "mkdir -p {install_root}{dir}".format(
install_root=install_root,
dir=dir))
if is_windows():
cls.write_cmd(out, "IF NOT EXIST {dir} (mkdir {dir})".format(
install_root=install_root,
dir=dir))
else:
cls.write_cmd(out, "mkdir -p {install_root}{dir}".format(
install_root=install_root,
dir=dir))
@classmethod
def _is_path_prefix_of(cls, temp_path, target_as_abs):
"""