ocaml/ocaml-pr-repository

Name: ocaml-pr-repository

Owner: OCaml

Description: opam switches for all the proposed pull requests against the compiler

Created: 2017-10-02 13:32:16.0

Updated: 2017-10-02 14:39:39.0

Pushed: 2018-02-22 00:00:19.0

Homepage: null

Size: 117

Language: null

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

ocaml-pr-repository – opam remotes for OCaml Pull Requests

The OCaml compiler is developed openly at https://github.com/ocaml/ocaml, with new changes discussed on the pull requests tracker at https://github.com/ocaml/ocaml/pulls.

It can be convenient to quickly try out a proposed patch and rapidly get a package development environment up and running, without having to manually recompile everything.

This repository contains a set of opam1-format compiler descriptions that are dynamically generated daily from the list of active PRs in the OCaml GitHub repository. They let you switch to any active PR using the opam package manager very easily:

Usage

First add this repository to your opam package universe:

$ opam repo add ocaml-pr https://github.com/ocaml/ocaml-pr-repository.git

Then list all the available compilers to find your PR

$ opam switch --all
[...]
-- 4.06.0+pr944                  Added some missing numeric C99-functions to Pervasives
-- 4.06.0+pr964                  Add Pervasives.pi
-- 4.06.0+pr974                  Enable msvc64 asmcomp tests
-- 4.06.0+pr975                  Make the testsuite more paranoid about the results
-- 4.06.0+trunk+afl              4.06 release branch with afl-fuzz instrumentation
-- 4.06.0+trunk+flambda          4.06 release branch with flambda activated
-- 4.06.0+trunk+fp               4.06 release branch with frame-pointers

Then switch to the PR you want to try out:

$ opam switch 4.06.0+pr944
$ eval `opam config env`

And that's all you need to do to use the patched compiler. Once you have tested the patch, don't forget to comment on the pull request with anything you've learnt from the usage of the patch.

Questions

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.