mirror of
https://github.com/Z3Prover/z3
synced 2025-04-12 12:08:18 +00:00
ML API: Windows build fixes
Signed-off-by: Christoph M. Wintersteiger <cwinter@microsoft.com>
This commit is contained in:
parent
6022ae6873
commit
0fee9659ab
|
@ -1394,12 +1394,10 @@ class MLComponent(Component):
|
||||||
archives,
|
archives,
|
||||||
get_component(Z3_DLL_COMPONENT).dll_name))
|
get_component(Z3_DLL_COMPONENT).dll_name))
|
||||||
out.write(' %s\n' % (os.path.join(sub_dir, 'z3native_stubs$(OBJ_EXT)')))
|
out.write(' %s\n' % (os.path.join(sub_dir, 'z3native_stubs$(OBJ_EXT)')))
|
||||||
out.write('\tocamlmklib -o %s -I %s -ldopt \'-L. -lz3\' ' % (
|
out.write('\tocamlmklib -o %s -I %s -ldopt \"-L. -lz3\" ' % (os.path.join(sub_dir, 'z3ml'), sub_dir))
|
||||||
os.path.join(sub_dir, 'z3ml'),
|
|
||||||
sub_dir))
|
|
||||||
for m in modules:
|
for m in modules:
|
||||||
out.write(' %s' % (os.path.join(sub_dir, m+'.ml')))
|
out.write(' %s' % (os.path.join(sub_dir, m+'.ml')))
|
||||||
out.write(' z3native_stubs$(OBJ_EXT)\n')
|
out.write(' %s\n' % (os.path.join(sub_dir, 'z3native_stubs$(OBJ_EXT)')))
|
||||||
out.write('ml: %s\n' % (os.path.join(sub_dir, 'z3ml.cmxa')))
|
out.write('ml: %s\n' % (os.path.join(sub_dir, 'z3ml.cmxa')))
|
||||||
self.mk_ml_meta(os.path.join('src/api/ml/META'), os.path.join(BUILD_DIR, sub_dir, 'META'), VER_MAJOR, VER_MINOR, VER_BUILD, VER_REVISION)
|
self.mk_ml_meta(os.path.join('src/api/ml/META'), os.path.join(BUILD_DIR, sub_dir, 'META'), VER_MAJOR, VER_MINOR, VER_BUILD, VER_REVISION)
|
||||||
if OCAMLFIND != '':
|
if OCAMLFIND != '':
|
||||||
|
@ -1417,13 +1415,13 @@ class MLComponent(Component):
|
||||||
out.write(' %s.ml' % (os.path.join(sub_dir, m)))
|
out.write(' %s.ml' % (os.path.join(sub_dir, m)))
|
||||||
out.write(' %s.mli' % (os.path.join(sub_dir, m)))
|
out.write(' %s.mli' % (os.path.join(sub_dir, m)))
|
||||||
out.write(' %s$(OBJ_EXT)' % (os.path.join(sub_dir, m)))
|
out.write(' %s$(OBJ_EXT)' % (os.path.join(sub_dir, m)))
|
||||||
out.write(' %s' % ((os.path.join(sub_dir, 'z3ml.a'))))
|
out.write(' %s' % ((os.path.join(sub_dir, 'z3ml$(LIB_EXT)'))))
|
||||||
out.write(' %s' % ((os.path.join(sub_dir, 'z3ml.cma'))))
|
out.write(' %s' % ((os.path.join(sub_dir, 'z3ml.cma'))))
|
||||||
out.write(' %s' % ((os.path.join(sub_dir, 'z3ml.cmxa'))))
|
out.write(' %s' % ((os.path.join(sub_dir, 'z3ml.cmxa'))))
|
||||||
out.write(' %s' % ((os.path.join(sub_dir, 'libz3ml$(LIB_EXT)'))))
|
out.write(' %s' % ((os.path.join(sub_dir, 'libz3ml$(LIB_EXT)'))))
|
||||||
out.write(' %s' % ((os.path.join(sub_dir, 'dllz3ml'))))
|
out.write(' %s' % ((os.path.join(sub_dir, 'dllz3ml'))))
|
||||||
if IS_WINDOWS:
|
if IS_WINDOWS:
|
||||||
out.write('.lib')
|
out.write('.dll')
|
||||||
else:
|
else:
|
||||||
out.write('.so') # .so also on OSX!
|
out.write('.so') # .so also on OSX!
|
||||||
out.write(' ' + get_component(Z3_DLL_COMPONENT).dll_name + '$(SO_EXT)')
|
out.write(' ' + get_component(Z3_DLL_COMPONENT).dll_name + '$(SO_EXT)')
|
||||||
|
@ -1550,7 +1548,7 @@ class MLExampleComponent(ExampleComponent):
|
||||||
|
|
||||||
def mk_makefile(self, out):
|
def mk_makefile(self, out):
|
||||||
if ML_ENABLED:
|
if ML_ENABLED:
|
||||||
out.write('ml_example.byte: api/ml/z3ml.cma ')
|
out.write('ml_example.byte: api/ml/z3ml.cmxa ')
|
||||||
for mlfile in get_ml_files(self.ex_dir):
|
for mlfile in get_ml_files(self.ex_dir):
|
||||||
out.write(' %s' % os.path.join(self.to_ex_dir, mlfile))
|
out.write(' %s' % os.path.join(self.to_ex_dir, mlfile))
|
||||||
out.write('\n')
|
out.write('\n')
|
||||||
|
|
Loading…
Reference in a new issue