Rudi Grinberg
|
3e9bc8c0c3
|
Allow setting ENV vars in findlib.conf per toolchain
This is useful for configuring PKG CONFIG for cross compilation
|
2018-05-01 00:13:50 +07:00 |
Rudi Grinberg
|
24041593da
|
Move Code_error to Stdune.Exn
This exception is useful outside of jbuilder
|
2018-04-23 14:04:15 +07:00 |
Jeremie Dimino
|
31858c9680
|
Don't on side-effects for setting up the environment
Instead of making sure we set global variables and call Unix.putenv in
the right order, pass the environment explicitely everywhere.
|
2018-04-03 11:43:07 +08:00 |
Rudi Grinberg
|
9f3eb956d3
|
Add Env.update
|
2018-03-22 22:42:42 +08:00 |
Rudi Grinberg
|
cc02277095
|
Handle duplicate environment variables
Fixes #638
|
2018-03-20 22:02:49 +08:00 |
Rudi Grinberg
|
bd457ea549
|
Use Env.t over string array in another place
|
2018-03-15 18:24:41 +08:00 |
Jeremie Dimino
|
eef3633d9a
|
Tweak error messages
|
2018-03-12 18:45:47 +07:00 |
Rudi Grinberg
|
4a68db622d
|
Change representation to map from assoc list
|
2018-03-12 18:45:47 +07:00 |
Rudi Grinberg
|
161be3af1c
|
Stage Var.compare
|
2018-03-12 18:45:47 +07:00 |
Rudi Grinberg
|
1f99d0fb70
|
Simplify Env.get
we already have Var.equal now
|
2018-03-12 18:45:47 +07:00 |
Rudi Grinberg
|
79d47ab68e
|
Simplify Env.t
Use assoc list
|
2018-03-12 18:45:47 +07:00 |
Rudi Grinberg
|
26d6b03c66
|
Make unix representation more efficient
By not allocation a closure on every update
|
2018-03-12 18:45:47 +07:00 |
Rudi Grinberg
|
f1baaa23a8
|
Add Env.add
Just add 1 binding to Env
|
2018-03-12 18:45:47 +07:00 |
Rudi Grinberg
|
4b191b2b03
|
s/Env.get_var/Env.get/
|
2018-03-12 18:45:47 +07:00 |
Rudi Grinberg
|
35d4153641
|
Make Env.t abstract
|
2018-03-12 18:43:02 +07:00 |
Rudi Grinberg
|
8458bf3b15
|
Move env related functions to Env module
|
2018-03-12 18:43:02 +07:00 |