PR#6720: propagate -g to the C compiler

(Peter Zotov)

git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@15795 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
master
Gabriel Scherer 2015-01-24 16:35:32 +00:00
parent 95f626c9ff
commit a4029d876b
1 changed files with 2 additions and 1 deletions

View File

@ -51,7 +51,7 @@ let quote_optfile = function
let compile_file ~output_name name =
command
(Printf.sprintf
"%s%s -c %s %s %s %s"
"%s%s -c %s %s %s %s %s"
(match !Clflags.c_compiler with
| Some cc -> cc
| None ->
@ -61,6 +61,7 @@ let compile_file ~output_name name =
(match output_name with
| Some n -> " -o " ^ Filename.quote n
| None -> "")
(if !Clflags.debug then "-g" else "")
(String.concat " " (List.rev !Clflags.all_ccopts))
(quote_prefixed "-I" (List.rev !Clflags.include_dirs))
(Clflags.std_include_flag "-I")