Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
POTTIER Francois
menhir
Commits
b07fb441
Commit
b07fb441
authored
Sep 19, 2019
by
Nicolás Ojeda Bär
Committed by
POTTIER Francois
Sep 24, 2019
Browse files
Remove MENHIR_STDLIB, --stdlib logic
parent
83463c31
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/Makefile
View file @
b07fb441
...
...
@@ -51,7 +51,7 @@ stage1:
.PHONY
:
update
update
:
stage1
cp
parserMessages.messages parserMessages.messages.bak
_stage1/menhir.
$(TARGET)
$(BASEFLAGS)
--stdlib
.
\
_stage1/menhir.
$(TARGET)
$(BASEFLAGS)
\
--update-errors
parserMessages.messages.bak
\
fancy-parser.mly
\
>
parserMessages.messages
...
...
@@ -86,8 +86,7 @@ BASEFLAGS := \
FLAGS
:=
\
$(BASEFLAGS)
\
-v
\
--stdlib
$(SRC)
\
-v
.PHONY
:
stage2
stage2
:
...
...
src/settings.ml
View file @
b07fb441
...
...
@@ -188,20 +188,6 @@ let filenames =
let
no_stdlib
=
ref
false
(* By default, [stdlib_path] is [Installation.libdir], that is, the directory
that was specified when Menhir was compiled. This is overridden by the
environment variable $MENHIR_STDLIB, if it is defined, and by the --stdlib
command line option, if present. *)
let
stdlib_path
=
ref
Installation
.
libdir
let
()
=
try
stdlib_path
:=
Sys
.
getenv
"MENHIR_STDLIB"
with
Not_found
->
()
let
insert
name
=
filenames
:=
StringSet
.
add
name
!
filenames
...
...
@@ -356,7 +342,7 @@ let options = Arg.align [
" Print grammar with unit actions & tokens"
;
"--only-tokens"
,
Arg
.
Unit
tokentypeonly
,
" Generate token type definition only, no code"
;
"--raw-depend"
,
Arg
.
Unit
enable_raw_depend
,
" Invoke ocamldep and echo its raw output"
;
"--stdlib"
,
Arg
.
S
et_s
tring
stdlib_path
,
"<directory> Specify where the standard library lies"
;
"--stdlib"
,
Arg
.
String
ignore
,
"<directory> Specify where the standard library lies
(ignored)
"
;
"--strict"
,
Arg
.
Set
strict
,
" Warnings about the grammar are errors"
;
"--suggest-comp-flags"
,
Arg
.
Unit
(
fun
()
->
suggestion
:=
SuggestCompFlags
)
,
" Suggest compilation flags for ocaml{c,opt}"
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment