From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@sympa.inria.fr Delivered-To: caml-list@sympa.inria.fr Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by sympa.inria.fr (Postfix) with ESMTPS id 7318F7ED35 for ; Tue, 10 Jul 2012 14:17:54 +0200 (CEST) Received-SPF: None (mail4-smtp-sop.national.inria.fr: no sender authenticity information available from domain of jeremie@dimino.org) identity=pra; client-ip=213.186.38.18; receiver=mail4-smtp-sop.national.inria.fr; envelope-from="jeremie@dimino.org"; x-sender="jeremie@dimino.org"; x-conformance=sidf_compatible Received-SPF: Pass (mail4-smtp-sop.national.inria.fr: domain of jeremie@dimino.org designates 213.186.38.18 as permitted sender) identity=mailfrom; client-ip=213.186.38.18; receiver=mail4-smtp-sop.national.inria.fr; envelope-from="jeremie@dimino.org"; x-sender="jeremie@dimino.org"; x-conformance=sidf_compatible; x-record-type="v=spf1" Received-SPF: None (mail4-smtp-sop.national.inria.fr: no sender authenticity information available from domain of postmaster@solaria.dimino.org) identity=helo; client-ip=213.186.38.18; receiver=mail4-smtp-sop.national.inria.fr; envelope-from="jeremie@dimino.org"; x-sender="postmaster@solaria.dimino.org"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AiUFAO0c/E/VuiYS/2dsb2JhbABFDoUIULIYgQeCIAEBBAEMF1YFCwkCGgImAgJXBhOIBwqpVZMegSCKIIUQgRIDlTWBE45zgiY7 X-IronPort-AV: E=Sophos;i="4.77,559,1336341600"; d="scan'208";a="150186149" Received: from solaria.dimino.org ([213.186.38.18]) by mail4-smtp-sop.national.inria.fr with ESMTP/TLS/ADH-AES256-SHA; 10 Jul 2012 14:17:45 +0200 Received: from caladan (caladan.dim [10.200.42.14]) by solaria.dimino.org (Postfix) with ESMTP id 23A8980083; Tue, 10 Jul 2012 14:17:44 +0200 (CEST) Received: from caladan.esterel-technologies.com (localhost [127.0.0.1]) by caladan (Postfix) with ESMTP id A973CFF8EE; Tue, 10 Jul 2012 14:16:45 +0200 (CEST) Date: Tue, 10 Jul 2012 14:16:44 +0200 From: =?UTF-8?B?SsOpcsOpbWll?= Dimino To: "Dash, Santanu" Cc: "caml-list@inria.fr" Message-ID: <20120710141644.7eec1b5a@caladan.esterel-technologies.com> In-Reply-To: References: X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.10; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Caml-list] file specific outputting Le Tue, 10 Jul 2012 11:50:24 +0100, "Dash, Santanu" a =C3=A9crit : > Can someone direct me on the best way to go about this? Is there a > variable in the compiler that stores the filename of the file > currently being compiled? There is Location.input_name. It is set by the compiler before parsing a source file (file "driver/pparse.ml", function "file"). Note that if there are multiple source files on the command line it will be modified for each one of them. --=20 J=C3=A9r=C3=A9mie