File: Compflags

package info (click to toggle)
ocaml 5.4.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 44,372 kB
  • sloc: ml: 370,196; ansic: 52,820; sh: 27,419; asm: 5,462; makefile: 3,684; python: 974; awk: 278; javascript: 273; perl: 59; fortran: 21; cs: 9
file content (40 lines) | stat: -rwxr-xr-x 2,167 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/bin/sh
#**************************************************************************
#*                                                                        *
#*                                 OCaml                                  *
#*                                                                        *
#*            Xavier Leroy, projet Cristal, INRIA Rocquencourt            *
#*                                                                        *
#*   Copyright 2004 Institut National de Recherche en Informatique et     *
#*     en Automatique.                                                    *
#*                                                                        *
#*   All rights reserved.  This file is distributed under the terms of    *
#*   the GNU Lesser General Public License version 2.1, with the          *
#*   special exception on linking described in the file LICENSE.          *
#*                                                                        *
#**************************************************************************

case $1 in
  stdlib.cm[iox])
      echo ' -nopervasives -no-alias-deps -w -49' \
           ' -pp "$AWK -f ./expand_module_aliases.awk"';;
  # stdlib dependencies
  camlinternalFormatBasics*.cm[iox]) echo ' -nopervasives';;
  # end stdlib dependencies
  camlinternalOO.cmx) echo ' -inline 0 -afl-inst-ratio 0';;
  camlinternalLazy.cmx) echo ' -afl-inst-ratio 0';;
    # never instrument camlinternalOO or camlinternalLazy (PR#7725)
  stdlib__Buffer.cmx) echo ' -inline 3';;
                           # make sure add_char is inlined (PR#5872)
  stdlib__Buffer.cm[io]) echo ' -w +A';;
  camlinternalFormat.cm[io]) echo ' -w +A -w -fragile-match';;
  stdlib__Printf.cm[io]|stdlib__Format.cm[io]|stdlib__Scanf.cm[io])
      echo ' -w +A -w -fragile-match';;
  stdlib__Scanf.cmx) echo ' -inline 9';;
  *Labels.cmi) echo ' -pp "$AWK -f ./expand_module_aliases.awk"';;
  *Labels.cm[ox]) echo ' -nolabels -no-alias-deps';;
  stdlib__Float.cm[ox]) echo ' -nolabels -no-alias-deps';;
  stdlib__Oo.cmi) echo ' -no-principal';;
    # preserve structure sharing in Oo.copy (PR#9767)
  *) echo ' ';;
esac