~ubuntu-branches/ubuntu/trusty/coccinelle/trusty

« back to all changes in this revision

Viewing changes to ocaml/yes_prepare_ocamlcocci.ml

  • Committer: Package Import Robot
  • Author(s): Євгеній Мещеряков
  • Date: 2012-08-19 20:40:52 UTC
  • mfrom: (7.2.8 experimental)
  • Revision ID: package-import@ubuntu.com-20120819204052-8cujknwy6cn8a6h6
Tags: 1.0.0~rc15.deb-1
* New upstream RC 
  - Do not build-depend on libsexplib-camlp4-dev and libextlib-ocaml-dev
    anymore

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
 
27
27
let check_runtime () =
28
28
  let has_opt  = check_cmd (to_opt (!Flag.ocamlc) ^ " -version 2>&1 > /dev/null") in
29
 
  let has_c    = check_cmd (to_opt (!Flag.ocamlc) ^ " -version 2>&1 > /dev/null") in
 
29
  let has_c    = check_cmd (!Flag.ocamlc ^ " -version 2>&1 > /dev/null") in
30
30
    if has_opt then
31
31
      begin
32
32
        Flag.ocamlc   := to_opt (!Flag.ocamlc);
374
374
(*   let linklibs = link_libs lklibs in *)
375
375
  let flags =
376
376
    Printf.sprintf
377
 
    "-thread -g -dtypes -I %s %s -I %s/globals -I %s/ocaml -I %s/parsing_c -I %s/commons "
 
377
    "-g -I %s %s -I %s/globals -I %s/ocaml -I %s/parsing_c -I %s/commons "
378
378
      (sysdir ()) inc Config.path Config.path Config.path Config.path in
379
379
  let (obj, cmd) =
380
380
    if Config.dynlink_is_native