-
Notifications
You must be signed in to change notification settings - Fork 86
/
Copy pathdune
35 lines (33 loc) · 1.64 KB
/
dune
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
;**************************************************************************
;* *
;* OCaml *
;* *
;* Thomas Refis, Jane Street Europe *
;* *
;* Copyright 2018 Jane Street Group LLC *
;* *
;* 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. *
;* *
;**************************************************************************
(rule
(targets arch.ml CSE.ml proc.ml regalloc_stack_operands.ml reload.ml scheduling.ml selection.ml
simd.ml simd_selection.ml simd_reload.ml)
(mode fallback)
(deps (glob_files amd64/*.ml)
(glob_files arm64/*.ml))
(action (bash "cp %{env:ARCH=amd64}/*.ml .")))
(rule
(targets emit.ml)
(mode fallback)
(deps amd64/emit.mlp
arm64/emit.mlp)
(action
(progn
(with-stdout-to contains-input-name
(bash "echo %{env:ARCH=amd64}/emit.mlp"))
(with-stdout-to %{targets}
(progn
(bash "echo \\# 1 \\\"`cat contains-input-name`\\\"")
(bash "%{dep:../ocaml/tools/cvt_emit.exe} < `cat contains-input-name`"))))))