mirror of
https://github.com/Z3Prover/z3
synced 2025-04-14 21:08:46 +00:00
Removed -std=c++11 from OCaml stubs build command. Fixes #1263.
This commit is contained in:
parent
2229a2fc1b
commit
9a464dded4
|
@ -1913,7 +1913,11 @@ class MLComponent(Component):
|
||||||
src_dir = self.to_src_dir
|
src_dir = self.to_src_dir
|
||||||
mk_dir(os.path.join(BUILD_DIR, self.sub_dir))
|
mk_dir(os.path.join(BUILD_DIR, self.sub_dir))
|
||||||
api_src = get_component(API_COMPONENT).to_src_dir
|
api_src = get_component(API_COMPONENT).to_src_dir
|
||||||
out.write('CXXFLAGS_OCAML=$(CXXFLAGS:/GL=)\n') # remove /GL; the ocaml tools don't like it.
|
# remove /GL and -std=c++11; the ocaml tools don't like them.
|
||||||
|
if IS_WINDOWS:
|
||||||
|
out.write('CXXFLAGS_OCAML=$(CXXFLAGS:/GL=)\n')
|
||||||
|
else:
|
||||||
|
out.write('CXXFLAGS_OCAML=$(subst -std=c++11,,$(CXXFLAGS))\n')
|
||||||
|
|
||||||
if IS_WINDOWS:
|
if IS_WINDOWS:
|
||||||
prefix_lib = '-L' + os.path.abspath(BUILD_DIR).replace('\\', '\\\\')
|
prefix_lib = '-L' + os.path.abspath(BUILD_DIR).replace('\\', '\\\\')
|
||||||
|
|
Loading…
Reference in a new issue