import sys
import os
from os.path import relpath
ocaml_build_dir = relpath(sys.argv[1], '.')
os.execvp("make", ["make", 'OCAML_BUILDDIR=' + ocaml_build_dir, "ocaml"])

import sys
import os
from os.path import relpath
ocaml_build_dir = relpath(sys.argv[1], '.')

# Hack: when we can depend on a full OCaml feed with the build tools, we can remove this.
# Until then, we need to avoid trying to compile against the limited runtime environment.
if 'OCAMLLIB' in os.environ:
	del os.environ['OCAMLLIB']

os.execvp("make", ["make", 'OCAML_BUILDDIR=' + ocaml_build_dir, "ocaml"])

Remove OCAMLLIB from build environment
Remove OCAMLLIB from build environment

This is a temporary hack: when we can depend on a full OCaml feed with
the build tools, we can remove this. Until then, we need to avoid trying
to compile against the limited runtime environment.

  import sys
  import os
  from os.path import relpath
  ocaml_build_dir = relpath(sys.argv[1], '.')
+ 
+ # Hack: when we can depend on a full OCaml feed with the build tools, we can remove this.
+ # Until then, we need to avoid trying to compile against the limited runtime environment.
+ if 'OCAMLLIB' in os.environ:
+ 	del os.environ['OCAMLLIB']
+ 
  os.execvp("make", ["make", 'OCAML_BUILDDIR=' + ocaml_build_dir, "ocaml"])
  
Remove OCAMLLIB from build environment
## Code Before:
import sys
import os
from os.path import relpath
ocaml_build_dir = relpath(sys.argv[1], '.')
os.execvp("make", ["make", 'OCAML_BUILDDIR=' + ocaml_build_dir, "ocaml"])

## Instruction:
Remove OCAMLLIB from build environment
## Code After:
import sys
import os
from os.path import relpath
ocaml_build_dir = relpath(sys.argv[1], '.')

# Hack: when we can depend on a full OCaml feed with the build tools, we can remove this.
# Until then, we need to avoid trying to compile against the limited runtime environment.
if 'OCAMLLIB' in os.environ:
	del os.environ['OCAMLLIB']

os.execvp("make", ["make", 'OCAML_BUILDDIR=' + ocaml_build_dir, "ocaml"])
