From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: * X-Spam-Status: No, score=1.0 required=5.0 tests=AWL,SPF_NEUTRAL autolearn=disabled version=3.1.3 Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by yquem.inria.fr (Postfix) with ESMTP id 6B2E1BC6C for ; Mon, 4 Feb 2008 15:01:50 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgAAAGuppkfAXQInh2dsb2JhbACQKQEBAQgKKZVxhEc X-IronPort-AV: E=Sophos;i="4.25,302,1199660400"; d="scan'208";a="6855253" Received: from concorde.inria.fr ([192.93.2.39]) by mail2-smtp-roc.national.inria.fr with ESMTP; 04 Feb 2008 15:01:50 +0100 Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by concorde.inria.fr (8.13.6/8.13.6) with ESMTP id m14E1nR6015006 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=OK) for ; Mon, 4 Feb 2008 15:01:50 +0100 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgAAAOOppkfRVY6+nmdsb2JhbACQKQEBAQEBBgQGBwoYlXKERw X-IronPort-AV: E=Sophos;i="4.25,302,1199660400"; d="scan'208";a="22155263" Received: from ti-out-0910.google.com ([209.85.142.190]) by mail4-smtp-sop.national.inria.fr with ESMTP; 04 Feb 2008 15:01:48 +0100 Received: by ti-out-0910.google.com with SMTP id b8so94760tic.9 for ; Mon, 04 Feb 2008 06:01:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; bh=rTRKI6fTHS9haVS62GYLlmXAGH2HIebQRaIH2ChU2e4=; b=k54LHydTRrF7E+Iqzrn07rlMZCOZ2oGgRni1AwPG9Qod6n+nhkh/HM+BljYlMr7a+VYIuVECb9ig0gTLPFdWmzxRsutDAQbiN6FoMtGedCSJ5fTVTnFwRyyHU06tKiC03X5qxCRbN3JNp3umXvLQwuhGbL0FdueJ4AqswGhjcEM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=Jqq14+cRo3tkIwsTMjtZ87dCLJoBV2SoRfmcTKRWTAX1Su+n+cyYilY45c76ebtG88n63EGZvQWOEBS3VftVxpy9AyDBZNw7qjy/7Aw2Rtm0fyg7ZxEig7dg7DNmAYuq9QsDkorHSO/WSJOIV9j8fzc1HmkfRz1++OD8gKrfY1Y= Received: by 10.110.60.2 with SMTP id i2mr3036924tia.11.1202133706433; Mon, 04 Feb 2008 06:01:46 -0800 (PST) Received: by 10.110.26.14 with HTTP; Mon, 4 Feb 2008 06:01:46 -0800 (PST) Message-ID: <90823c940802040601o319e231am4f8c0ab6f6e5aaff@mail.gmail.com> Date: Mon, 4 Feb 2008 17:01:46 +0300 From: "Dmitry Bely" To: ocaml Subject: ocamlc/ocamlopt output directory MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Miltered: at concorde with ID 47A71ACD.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; ocamlc:01 ocamlopt:01 ocaml:01 ocamlc:01 foo:01 foo:01 cmo:01 cmo:01 overwritten:01 bug:01 trivial:01 compilers:01 compilers:01 dmitry:01 dmitry:01 By default Ocaml compilers place output files to the same directory where the source resides: ocamlc -c ../src/foo.ml -> generates ../src//foo.cmo, not ./foo.cmo as one would expect from other compilers experience! This can be overwritten by -o flag, but it's a) completely undocumented for this purpose (manual says that it only affects the linking phase) and b) affects ALL generated files at once. Is this the design decision or just a faulty implementation? Should I submit a bug report (together with a rather trivial fix) or this behavior considered standard because it's too late to change anything? - Dmitry Bely