Skip to Content.
Sympa Menu

coq-club - Re: [Coq-Club] scons equivalent of coq_makefile

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re: [Coq-Club] scons equivalent of coq_makefile


Chronological Thread 
  • From: Abhishek Anand <abhishek.anand.iitg AT gmail.com>
  • To: coq-club <coq-club AT inria.fr>
  • Subject: Re: [Coq-Club] scons equivalent of coq_makefile
  • Date: Mon, 31 Aug 2020 11:43:44 -0700
  • Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None smtp.pra=abhishek.anand.iitg AT gmail.com; spf=Pass smtp.mailfrom=abhishek.anand.iitg AT gmail.com; spf=None smtp.helo=postmaster AT mail-il1-f172.google.com
  • Ironport-phdr: 9a23:Dc6YixWXeHKSSK3+TvHeewGqbV7V8LGtZVwlr6E/grcLSJyIuqrYbRyGt8tkgFKBZ4jH8fUM07OQ7/m+HzVavd3R6TgrS99lb1c9k8IYnggtUoauKHbQC7rUVRE8B9lIT1R//nu2YgB/Ecf6YEDO8DXptWZBUhrwOhBoKevrB4Xck9q41/yo+53Ufg5EmCexbal9IRmrrAjdrNQajZVtJ6o+yRbFv2ZDdvhLy29vOV+dhQv36N2q/J5k/SRQuvYh+NBFXK7nYak2TqFWASo/PWwt68LlqRfMTQ2U5nsBSWoWiQZHAxLE7B7hQJj8tDbxu/dn1ymbOc32Sq00WSin4qx2RhLklDsLOjgk+2zRl8d+jr9UoAi5qhNwzY7bYoGbOvR9cK3AY90VWXFMUdxNWyFbGI6wc5cDAugHMO1Fr4f9vVwOrR6mCASwH+zvyj5IhmT23aIk0OQqDB3L3Ao6ENIIrXvfsdL4O70JXuC1zanI1jXDYO1V2Tvn8ofIdAouofeRUr5qcMrRyFUvFwzeg1WfrIzqJTKV1uAXv2eH6OpgUPuihmg6oA5+vjah3N0jipXVho0L0FDE8z10zog6KNC2RkB1btGqHZhSuiyUKYZ7Qd0uTmF0tCsky7ALp5q2cTYWxZkn2xLSb/yJfoaI7x/nUOucISl0iXN7db+5mh28/0+gyujmWcm11lZHtjZKkt7WtnALyRPT7syHRuFj8Ui8xDaDzwHT6udeIUA1j6XXMZAhwqQompoJr0vMBDL5mFn2jKCIa0ok/fSn6//9brXnoZ+QL5J7igDlMqsyncy/HP44MhMQUGSB9uS8zrrj/VDhQLhMk/Y4kbHZvYjEKcgHoqO1GQxY34Y55xqiDjqr0c4UkWQFIV5bfh+MkpLnNEvUIP/iCPeym1Ssnylvx/DBJrDhB4/CLnnHkLv4fLZ971NQxBM9zdxC5Z9YFKsNIP30Wk/2u9zYCgE2PxaozObgDdVxzoIeWWSRDa+FKK7er0OE6+Y1L+SPZIIZoivxJvkk6vL0kHM0m0ERcbGs3ZQNaXC4GvpmI1+eYXrpmtoOC3wFvgo/TOzxiF2NTz1Ta2yoUKI6/D47Dp+pAZ3CRoCsnLyB0zy2HpJTZm9cC1CMFW3keJmDW/cJcC6SONNukiQYVbi9TI8szQ2htAjjy7Z+MuXU/jAYuon42dhu5+zTkAky+iZuA8Sc1WGNVWB0kXkSSz84xqAs6XB6n1yEyO1zh+FSXYhY4OoMWQMnP7bdyfZ7Apb8QFSSUM2OTQOPSNWnGjE8TZoYxdYIbw4pEt+ijwvD0insCrkckbDNBZ0o/YrT2nHwI4B2zHOQh/pptEUvXsYabT7uvaV47QWGX9eUwXXcrL6jcOEn5ACI9GqHyjDQ7kRRUQo1UKGcGH5GORGQotP+6UfPCbSpDOZ/a1cT+Yu5MqJPL+bRoxBeXv66YYbRZmuwnyG7AhPanurdPrqvQH0U2WDmMGZBlgkS+XicMg1nX3WupmvfCHplEle9Ok4=

would dune then eagerly invoke cpp2v on everything before building even 1 .vo file? coq_makefile's Makefile builds all .v files before invoking coqdep, which makes sense given the current implementation of coqdep.



On Mon, Aug 31, 2020 at 11:40 AM Rudi Grinberg <rudi.grinberg AT gmail.com> wrote:
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.
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
UNBREAKABLE FOUNDATION FOR

FORMALLY SECURED COMPUTING



Archive powered by MHonArc 2.6.19+.

Top of Page