Summary: * Adds compilation of cxxabi.bc * Includes the cxxabi.bc into the sledge executable via opam-crunch * Links cxxabi.bc in sledge frontend Reviewed By: jberdine Differential Revision: D15415190 fbshipit-source-id: cc42f09fbmaster
parent
04c3ccaac5
commit
d47824fe37
@ -0,0 +1,32 @@
|
||||
(* -*- tuareg -*- *)
|
||||
(*
|
||||
* Copyright (c) 2019-present, Facebook, Inc.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*)
|
||||
|
||||
let deps = []
|
||||
|
||||
;;
|
||||
Jbuild_plugin.V1.send
|
||||
@@ Format.sprintf
|
||||
{|
|
||||
(rule
|
||||
(targets cxxabi.bc)
|
||||
(deps cxxabi.cpp Makefile llair_intrinsics.h)
|
||||
(action (run make ROOT=../../.. cxxabi.bc)))
|
||||
|
||||
(rule
|
||||
(targets model.ml)
|
||||
(deps cxxabi.bc)
|
||||
(action (run ocaml-crunch -m plain -e bc -o model.ml .)))
|
||||
|
||||
(library
|
||||
(name model)
|
||||
(public_name llair.model)
|
||||
%s
|
||||
(libraries %s))
|
||||
|}
|
||||
(flags `lib deps)
|
||||
(libraries deps)
|
Loading…
Reference in new issue