summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDamien Doligez <damien.doligez-inria.fr>1999-11-09 15:39:42 +0000
committerDamien Doligez <damien.doligez-inria.fr>1999-11-09 15:39:42 +0000
commit025903e2fbc3851789c4831ca651360879bf30a9 (patch)
tree97912044ff6d8aedca57e82976a0dd2052cec5f8
parent4a0e1664d50d44dec15a0f12d31225c73ca607fc (diff)
CAMLRUNPARAM -> OCAMLRUNPARAM (mais on reste compatible)
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@2510 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
-rw-r--r--byterun/startup.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/byterun/startup.c b/byterun/startup.c
index 19c77eb75..77734ace7 100644
--- a/byterun/startup.c
+++ b/byterun/startup.c
@@ -216,7 +216,10 @@ static void scanmult (char *opt, long unsigned int *var)
static void parse_camlrunparam(void)
{
- char *opt = getenv ("CAMLRUNPARAM");
+ char *opt = getenv ("OCAMLRUNPARAM");
+
+ if (opt == NULL) opt = getenv ("CAMLRUNPARAM");
+
if (opt != NULL){
while (*opt != '\0'){
switch (*opt++){