diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2003-12-15 14:42:41 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2003-12-15 14:42:41 +0000 |
commit | e9ca65afea8f700c99014d32bca0d48911817cf8 (patch) | |
tree | 45a5f697f89ff4523f949c1033996fc09a65ca7a /perl_checker.src/perl_checker.ml | |
parent | 841ae5884be4af07785a35eff4afc1a031fcde43 (diff) | |
download | perl-MDK-Common-e9ca65afea8f700c99014d32bca0d48911817cf8.tar perl-MDK-Common-e9ca65afea8f700c99014d32bca0d48911817cf8.tar.gz perl-MDK-Common-e9ca65afea8f700c99014d32bca0d48911817cf8.tar.bz2 perl-MDK-Common-e9ca65afea8f700c99014d32bca0d48911817cf8.tar.xz perl-MDK-Common-e9ca65afea8f700c99014d32bca0d48911817cf8.zip |
have a special debugging build
(esp. to disable closing pipe which disallow debugging back in time)
Diffstat (limited to 'perl_checker.src/perl_checker.ml')
-rw-r--r-- | perl_checker.src/perl_checker.ml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/perl_checker.src/perl_checker.ml b/perl_checker.src/perl_checker.ml index 761d7e5..48e9a2d 100644 --- a/perl_checker.src/perl_checker.ml +++ b/perl_checker.src/perl_checker.ml @@ -33,7 +33,7 @@ let rec parse_file from_basedir require_name per_files file = try Info.start_a_new_file file ; let tokens = Lexer.get_token Lexer.token lexbuf in - let _ = Unix.close_process_in channel in + if not Build.debugging then ignore (Unix.close_process_in channel) ; let t = Parser_helper.parse_tokens Parser.prog tokens (Some lexbuf) in let per_file = get_global_info_from_package from_basedir require_name build_time t in set_basedir per_files per_file ; @@ -102,7 +102,7 @@ let parse_options = let usage = "Usage: perl_checker [-v] [-q] <files>\nOptions are:" in Arg.parse options (lpush args_r) usage; - let files = if !args_r = [] then ["../t.pl"] else !args_r in + let files = if !args_r = [] && Build.debugging then ["../t.pl"] else !args_r in let files = List.map Info.file_to_absolute_file files in let required_packages, per_files = collect_withenv (parse_file true None) (default_per_files()) files in |