coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Rudi Grinberg <rudi.grinberg AT gmail.com>
- To: coq-club AT inria.fr
- Subject: Re: [Coq-Club] scons equivalent of coq_makefile
- Date: Mon, 31 Aug 2020 11:40:20 -0700
- Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None smtp.pra=rudi.grinberg AT gmail.com; spf=Pass smtp.mailfrom=rudi.grinberg AT gmail.com; spf=None smtp.helo=postmaster AT mail-pj1-f51.google.com
- Ironport-phdr: 9a23:D4nkdRL4xc8nPZrbmdmcpTZWNBhigK39O0sv0rFitYgfKf/xwZ3uMQTl6Ol3ixeRBMOHsqwC0rCK+PC5EUU7or+5+EgYd5JNUxJXwe43pCcHRPC/NEvgMfTxZDY7FskRHHVs/nW8LFQHUJ2mPw6arXK99yMdFQviPgRpOOv1BpTSj8Oq3Oyu5pHfeQpFiCe8bL9oMRm6swrcusYVjId/N6081gbHrnxUdupM2GhmP0iTnxHy5sex+J5s7SFdsO8/+sBDTKv3Yb02QaRXAzo6PW814tbrtQTYQguU+nQcSGQWnQFWDAXD8Rr3Q43+sir+tup6xSmaIcj7Rq06VDi+86tmTgLjhSEaPDA77W7XkNR9gqxbrhy/pBJwwYDUbpyaO/ViZa7SZ88WSHBbU8pNSyBMAIWxZJYPAeobOuZYqpHwqUcTrRSjBAmnGeLhyiVJhn/wxqI1zf4hEQ7b1wEnBdIOrWnbrNTvOKcdS+C1za/Iwi7dYPNM1jfw84fIchU7rvGNWbJ8a9beyU4qFw7ciFibtIPqMS+P2OsXr2ib8/RvVfipi2M/pAx9vyWjy9kshITNh48bxVLJ+CR7zYooJdC1R092bN24HJZRuC+XKo97TMMtTW9ouCg216AKt5C0cSYKyZkqwxjSYOGJfYiP5xLsTueRITFgiXJkfrK/nRey/lK6xu3yTMm4yExKoTRfndbRqnAN1wLc5dWASvRh5UetwzeP1wfL5u5ZIEA0jrbUK5k8wr4qjZocr17PHiDsmEXxka+WbkMp8fWr5eT/erjquIOQOotuhgz9MqkigNKzDfk5PwQUX2WX5Pyw2b//8UHjTrhHj+c6n6ndvZzAOMgWoq+0DglI2Yg58Rm/FS2p0NEAkHkHMl1FfBWHgpDsO17UIfD4Ce6zg0yukDt23vzGML3sDojXInjMl7fherl960pCxwYp0d9f4JdUBqkAIPL1REDxqMTVAgElPwGw2erqC9Vw2pkAVW6SA6KVKqPfvUKQ6uIqOeaMZYsVuDjnK/gi4v7jlWU5mUIAcqmox5cXZ2q4HvVgI0qCf3XsmNgBHHwFvgo7VuPqiVmCXSRPaHa1WqIw/is7B56+DYffWoCth6SM0zu8Hp1Pf2xJFlSMEWrzeIifQPcNaCeSItd7nTAeVLihTZUh1RC0uwPgxbpnNLmcxipNvpX6kdNx+uf7lBco9DUyAd7O/XuKSjROg28JDxAs3aZ1rFZyggOZzKR5xfNCFNpZ6ulGegg/PJ/Yied9DoahCUr6Yt6VRQP+EZ2dCjYrQ4dpmo5cUwNGA9ynyyv78W+vCr4RmaaMAcVtoK3Z1nn1Yc16ziSfjfVzvxwdWsJKcFaeqOtn7QGKXtzGlkyYk+ChcqFOhHeQplfG9nKHuQRjaCA1UajBWipCNE7frNC8/kGbCrHzUPIoNQxOzcPEIaxPOIXk
I think you’re looking for a rule like this:
(rule
(deps foo.v)
(targets foo.cpp)
(action (cpp2v %{deps} -o %{targets)))
Usually, there’s a straightforward way to port any make rule to a dune rule. Sometimes this will require writing a lot more boilerplate, but it should be doable.
(rule
(deps foo.v)
(targets foo.cpp)
(action (cpp2v %{deps} -o %{targets)))
Usually, there’s a straightforward way to port any make rule to a dune rule. Sometimes this will require writing a lot more boilerplate, but it should be doable.
On Aug 31, 2020, 10:22 AM -0700, Gregory Malecha <gregory AT bedrocksystems.com>, wrote:
Does dune have a way to run pre-processors? For example, we have a tool, cpp2v, that takes a C++ file and generates a Coq file. I haven't found a way to get dune to do this for me.
On Sat, Aug 29, 2020 at 5:50 AM Théo Zimmermann <theo AT irif.fr> wrote:Dear Abhishek,
If you are looking for a way to get away from the limitations of make,
why not try the experimental Dune support for Coq instead?
See:
- https://coq.inria.fr/refman/practical-tools/utilities.html#building-a-coq-project-with-dune
- https://dune.readthedocs.io/en/stable/dune-files.html#coq-theory
- https://coq.discourse.group/t/a-guide-to-building-your-coq-libraries-and-plugins-with-dune/20
Cheers,
Théo
Le jeu. 20 août 2020 à 21:37, Abhishek Anand
<abhishek.anand.iitg AT gmail.com> a écrit :
>
> Has someone written a tool to produce scons declarations (SConstruct) from a _CoqProject?
> I find it advantageous over make, especially in cross-server CI settings, because it uses hashes instead of timestamps to decide whether to rebuild a .vo file.
--
Gregory Malecha
Mail: gregory AT bedrocksystems.com
BedRock
Systems Inc
FORMALLY SECURED COMPUTING
UNBREAKABLE FOUNDATION FOR
- [Coq-Club] scons equivalent of coq_makefile, Abhishek Anand, 08/20/2020
- Re: [Coq-Club] scons equivalent of coq_makefile, Théo Zimmermann, 08/29/2020
- Re: [Coq-Club] scons equivalent of coq_makefile, Clément Pit-Claudel, 08/30/2020
- Re: [Coq-Club] scons equivalent of coq_makefile, Gregory Malecha, 08/31/2020
- Re: [Coq-Club] scons equivalent of coq_makefile, Rudi Grinberg, 08/31/2020
- Re: [Coq-Club] scons equivalent of coq_makefile, Abhishek Anand, 08/31/2020
- Re: [Coq-Club] scons equivalent of coq_makefile, Rudi Grinberg, 08/31/2020
- Re: [Coq-Club] scons equivalent of coq_makefile, Abhishek Anand, 08/31/2020
- Re: [Coq-Club] scons equivalent of coq_makefile, Rudi Grinberg, 08/31/2020
- Re: [Coq-Club] scons equivalent of coq_makefile, Théo Zimmermann, 08/29/2020
Archive powered by MHonArc 2.6.19+.