mirror of
https://github.com/Z3Prover/z3
synced 2025-04-12 12:08:18 +00:00
Compilation fix for FreeBSD
This commit is contained in:
parent
2b492f04f6
commit
b6c0b8c9ff
|
@ -54,6 +54,7 @@ CPP_COMPONENT='cpp'
|
||||||
IS_WINDOWS=False
|
IS_WINDOWS=False
|
||||||
IS_LINUX=False
|
IS_LINUX=False
|
||||||
IS_OSX=False
|
IS_OSX=False
|
||||||
|
IS_FREEBSD=False
|
||||||
VERBOSE=True
|
VERBOSE=True
|
||||||
DEBUG_MODE=False
|
DEBUG_MODE=False
|
||||||
SHOW_CPPS = True
|
SHOW_CPPS = True
|
||||||
|
@ -98,6 +99,9 @@ def is_windows():
|
||||||
def is_linux():
|
def is_linux():
|
||||||
return IS_LINUX
|
return IS_LINUX
|
||||||
|
|
||||||
|
def is_freebsd():
|
||||||
|
return IS_FREEBSD
|
||||||
|
|
||||||
def is_osx():
|
def is_osx():
|
||||||
return IS_OSX
|
return IS_OSX
|
||||||
|
|
||||||
|
@ -426,6 +430,8 @@ elif os.name == 'posix':
|
||||||
IS_OSX=True
|
IS_OSX=True
|
||||||
elif os.uname()[0] == 'Linux':
|
elif os.uname()[0] == 'Linux':
|
||||||
IS_LINUX=True
|
IS_LINUX=True
|
||||||
|
elif os.uname()[0] == 'FreeBSD':
|
||||||
|
IS_FREEBSD=True
|
||||||
|
|
||||||
def display_help(exit_code):
|
def display_help(exit_code):
|
||||||
print("mk_make.py: Z3 Makefile generator\n")
|
print("mk_make.py: Z3 Makefile generator\n")
|
||||||
|
@ -1181,6 +1187,8 @@ class JavaDLLComponent(Component):
|
||||||
t = t.replace('PLATFORM', 'darwin')
|
t = t.replace('PLATFORM', 'darwin')
|
||||||
elif IS_LINUX:
|
elif IS_LINUX:
|
||||||
t = t.replace('PLATFORM', 'linux')
|
t = t.replace('PLATFORM', 'linux')
|
||||||
|
elif IS_FREEBSD:
|
||||||
|
t = t.replace('PLATFORM', 'freebsd')
|
||||||
else:
|
else:
|
||||||
t = t.replace('PLATFORM', 'win32')
|
t = t.replace('PLATFORM', 'win32')
|
||||||
out.write(t)
|
out.write(t)
|
||||||
|
|
Loading…
Reference in a new issue