Mentions légales du service

Skip to content
Snippets Groups Projects
  • David Allsopp's avatar
    732e9872
    Use the release profile for configure in opam · 732e9872
    David Allsopp authored
    The build instructions in the opam files correctly use `-p` for the
    builds themselves, but the configure script uses the default profile.
    The configure script now recognises -release in its first argument as
    meaning that `--profile=release` should be added to the `dune exec`
    invocation, and the opam files are updated to include this flag.
    732e9872
    History
    Use the release profile for configure in opam
    David Allsopp authored
    The build instructions in the opam files correctly use `-p` for the
    builds themselves, but the configure script uses the default profile.
    The configure script now recognises -release in its first argument as
    meaning that `--profile=release` should be added to the `dune exec`
    invocation, and the opam files are updated to include this flag.
configure 519 B
#!/bin/sh

## This micro-configure shell script is here only to
## launch the real configuration via ocaml
configure=./tools/configure/configure.exe

## Check that dune is available, provide an error message otherwise
if ! command -v dune > /dev/null
then
    1>&2 echo "Dune could not be found, please ensure you have a working OCaml enviroment"
    exit 1
fi

if [ "x$1" = 'x-release' ]; then
  shift 1
  dune_release='--profile=release'
else
  dune_release=''
fi

dune exec $dune_release --root . -- $configure "$@"