From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail1-relais-roc.national.inria.fr (mail1-relais-roc.national.inria.fr [192.134.164.82]) by walapai.inria.fr (8.13.6/8.13.6) with ESMTP id p4R7RaRU008889 for ; Fri, 27 May 2011 09:27:36 +0200 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AowCADlR301KfVI0kGdsb2JhbAA+AQMSpi4IFAEBAQEJCQ0HFAQipjGCQowegjeETTmIYgEBAwaGFgSQQYQ7gRGFVDuDOw X-IronPort-AV: E=Sophos;i="4.65,279,1304287200"; d="scan'208";a="109671369" Received: from mail-ww0-f52.google.com ([74.125.82.52]) by mail1-smtp-roc.national.inria.fr with ESMTP/TLS/RC4-SHA; 27 May 2011 09:27:30 +0200 Received: by mail-ww0-f52.google.com with SMTP id 31so1875176wwb.9 for ; Fri, 27 May 2011 00:27:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:content-type:content-transfer-encoding :subject:date:message-id:to:mime-version:x-mailer; bh=QNvmM1jM9VBTLDrZSLX7ppQDovJ43FTR+oIHirtEhDU=; b=cOTLJaJ7Tvt93AZrojCNVqH6YHfYNq1r+DH44N7gsqrSTrW2NY+frX9hYfmDn2CaNN RwSRW6CET9sW9L71MzaAf0sus5Rfs+Zn3OO0eZ5qXzo4mbwhugs4kWzXvrxeqvYmLs9p EwndGxbhdrcEXMCkqy1oESRkE/2ht5exDEiaw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:content-type:content-transfer-encoding:subject:date:message-id :to:mime-version:x-mailer; b=Jwu6u945OpKB4mMkwJnkNmQbjQ+zQAq1FFP+3O2NKGTw+ekSEe5mqcuUQ6Vfgdz84q EuY8O8oEXZZtnYpyc/iMO5fpsYfln8hKEtoTVFQ9or2ufT7it5vZFnJyJ9spfgnUH262 iMm654qiz/IGt9paee8LIxXOxcaoH4seKn3WI= Received: by 10.216.81.203 with SMTP id m53mr7390663wee.9.1306481250671; Fri, 27 May 2011 00:27:30 -0700 (PDT) Received: from [10.0.1.58] ([87.54.60.37]) by mx.google.com with ESMTPS id y3sm785777wec.34.2011.05.27.00.27.28 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 27 May 2011 00:27:29 -0700 (PDT) From: Joel Reymont Content-Type: text/plain; charset=us-ascii Date: Fri, 27 May 2011 09:27:27 +0200 Message-Id: <95CA84D2-5086-4459-B987-4C1DF825AE41@gmail.com> To: caml-list Mime-Version: 1.0 (Apple Message framework v1084) X-Mailer: Apple Mail (2.1084) Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by walapai.inria.fr id p4R7RaRU008889 Subject: [Caml-list] [PATCH] tremendously speeding up oasis builds with many executables Apply this patch to Oasis 0.2.0 to tremendously speed up builds with many executables https://gist.github.com/994781 This will only work if your executable name matches your main, e.g. Executable foo MainIs: foo.ml The patch makes Oasis 0.2.0 pass all such executables on the command line to ocamlbuild. This way ocamlbuild will be invoked once with all targets, rather than individually invoked for every executable. This avoids building the dependency graph on every invocation of ocamlbuild. It also avoids manually reading and comparing binaries before copying them after ocamlbuild is done, e.g. the patch will skip the final copy from foo.{byte,native} to foo. Enjoy! -------------------------------------------------------------------------- - for hire: mac osx device driver ninja, kernel extensions and usb drivers ---------------------+------------+--------------------------------------- http://wagerlabs.com | @wagerlabs | http://www.linkedin.com/in/joelreymont ---------------------+------------+---------------------------------------