mirror of
https://github.com/Z3Prover/z3
synced 2025-04-10 19:27:06 +00:00
fixed mk_make problem on Windows
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
parent
68b97024e2
commit
fdb3e22560
|
@ -88,6 +88,9 @@ def is_osx():
|
|||
def unix_path2dos(path):
|
||||
return string.join(path.split('/'), '\\')
|
||||
|
||||
def to_unix_path(path):
|
||||
return string.join(path.split('\\'), '/')
|
||||
|
||||
def which(program):
|
||||
import os
|
||||
def is_exe(fpath):
|
||||
|
@ -440,7 +443,7 @@ def extract_c_includes(fname):
|
|||
|
||||
# Given a path dir1/subdir2/subdir3 returns ../../..
|
||||
def reverse_path(p):
|
||||
l = p.split('/')
|
||||
l = to_unix_path(p).split('/')
|
||||
n = len(l)
|
||||
r = '..'
|
||||
for i in range(1, n):
|
||||
|
|
Loading…
Reference in a new issue