Skip to content

Commit

Permalink
[debug] objectFiles: allowing to bypass version checks
Browse files Browse the repository at this point in the history
  • Loading branch information
Valentin Gatien-Baron committed Jun 22, 2011
1 parent eb67589 commit 2e5e18a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions compilerlib/objectFiles.ml
Expand Up @@ -814,8 +814,10 @@ struct
try
let channel = open_in_bin name in
let l1 = input_line channel in
if l1 <> this_file_version then
error "The package %s was compiled with a different version of the compiler." package_name;
#<If$contains "noerror"> () #<Else>
if l1 <> this_file_version then
error "The package %s was compiled with a different version of the compiler." package_name
#<End>;
let v = (Marshal.from_channel channel : t) in
close_in channel;
v
Expand Down

0 comments on commit 2e5e18a

Please sign in to comment.