Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cduce
cduce
Commits
5b821745
Commit
5b821745
authored
Jul 10, 2007
by
Pietro Abate
Browse files
[r2003-10-13 20:21:54 by cvscast] Remove -o; add -I --obj-dir; error messages
Original author: cvscast Date: 2003-10-13 20:21:54+00:00
parent
7088b4f3
Changes
1
Hide whitespace changes
Inline
Side-by-side
driver/cduce.ml
View file @
5b821745
...
...
@@ -145,7 +145,7 @@ let rec print_exn ppf = function
Format
.
fprintf
ppf
"Source filename must have extension .cd@."
;
|
InvalidObjectFilename
f
->
Format
.
fprintf
ppf
"Compilation error:@."
;
Format
.
fprintf
ppf
"Object filename must have extension .cdo@."
;
Format
.
fprintf
ppf
"Object filename must have extension .cdo
and no path
@."
;
|
Librarian
.
InvalidObject
f
->
Format
.
fprintf
ppf
"Invalid object file %s@."
f
|
Librarian
.
CannotOpen
f
->
...
...
@@ -360,7 +360,7 @@ let compile_run src argv =
let
run
obj
argv
=
try
if
not
(
Filename
.
check_suffix
obj
".cdo"
)
if
not
(
Filename
.
check_suffix
obj
".cdo"
)
||
(
Filename
.
basename
obj
<>
obj
)
then
raise
(
InvalidObjectFilename
obj
);
let
cu
=
Filename
.
chop_suffix
(
Filename
.
basename
obj
)
".cdo"
in
let
id
=
Types
.
CompUnit
.
mk
(
U
.
mk_latin1
cu
)
in
...
...
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