forked from rescript-lang/rescript
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCompflags
executable file
·28 lines (27 loc) · 1.51 KB
/
Compflags
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
#!/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 Library General Public License, with #
# the special exception on linking described in file ../LICENSE. #
# #
#########################################################################
case $1 in
pervasives.cm[ioxj]|pervasives.p.cmx) echo ' -nopervasives';;
camlinternalOO.cmi) echo ' -nopervasives';;
#camlinternalOO.cmx|camlinternalOO.p.cmx) echo ' -inline 0';;
#buffer.cmx|buffer.p.cmx) echo ' -inline 3';;
# make sure add_char is inlined (PR#5872)
#buffer.cm[ioj]) echo ' -w A';;
#camlinternalFormat.cm[ioj]) echo ' -w Ae';;
camlinternalFormatBasics*.cm[ioxj]) echo ' -nopervasives';;
#printf.cm[ioj]|format.cm[ioj]|scanf.cm[ioj]) echo ' -w Ae';;
#scanf.cmx|scanf.p.cmx) echo ' -inline 9';;
*Labels.cm[oxj]|*Labels.p.cmx) echo ' -nolabels -no-alias-deps';;
*) echo ' ';;
esac