From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/54531 Path: news.gmane.org!not-for-mail From: Mojca Miklavec Newsgroups: gmane.comp.tex.context Subject: Re: osx-64-binaries/minimals Date: Thu, 19 Nov 2009 09:43:32 +0100 Message-ID: <6faad9f00911190043k6a3c047dh2bfddba61b1ddaef@mail.gmail.com> References: <4B007D89.5030409@gmail.com> <6faad9f00911180449u2e0a8d67q9c2df00b0072afb3@mail.gmail.com> <6faad9f00911181718u49aa2046s76ff644149a4a84a@mail.gmail.com> <4B04ECE9.3060201@elvenkind.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1258620231 30243 80.91.229.12 (19 Nov 2009 08:43:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 19 Nov 2009 08:43:51 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Nov 19 09:43:44 2009 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.50) id 1NB2c9-00053L-VY for gctc-ntg-context-518@m.gmane.org; Thu, 19 Nov 2009 09:43:42 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D5C9DC9AAA; Thu, 19 Nov 2009 09:41:13 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id OyDKl04QK2rG; Thu, 19 Nov 2009 09:41:09 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D77FCC9A70; Thu, 19 Nov 2009 09:41:09 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 016F7C9A70 for ; Thu, 19 Nov 2009 09:41:09 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id ac17DOTjFluI for ; Thu, 19 Nov 2009 09:41:06 +0100 (CET) Original-Received: from mail-fx0-f218.google.com (mail-fx0-f218.google.com [209.85.220.218]) by balder.ntg.nl (Postfix) with ESMTP id 00CB2C9A41 for ; Thu, 19 Nov 2009 09:41:05 +0100 (CET) Original-Received: by fxm10 with SMTP id 10so2081688fxm.34 for ; Thu, 19 Nov 2009 00:43:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=Mrtiu1twahNLBN1A0F2/WuaKJ3rF7z7KJwa4IvRnH4k=; b=EVXZbMNAu4GZSC8NxMxGa3lNSbYHW5TogrZVUkP/SMpfc7CxoqZP9vGa6hGmauRKhp Evlc43QefSlq978EMcQpeH5rCjfmCZaPvylqIJybABNuVR/N2kbBevB/oYyLxKfI+QYK ic4mVNIsD6CT1YTbo4XoURlnE6iHu2fo9jMzI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=Bjuj2I6M/Rw4u4IpMxOR9USFOI0lGSubW+Cj/Pqs6krE1eOWoSQ7OR2OzONsOIS5wP 5VaMjt1cbcUVZ966Z+sBTZcYSb2vctfHUHd8BLgRq7vhcCXjK4WEB01GsX8QPUK+G03S rL0PdJIEp4Z+EOPYscv9cXdkn5zNzxamtF2lE= Original-Received: by 10.216.85.213 with SMTP id u63mr613511wee.15.1258620212262; Thu, 19 Nov 2009 00:43:32 -0800 (PST) In-Reply-To: <4B04ECE9.3060201@elvenkind.com> X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:54531 Archived-At: On Thu, Nov 19, 2009 at 07:59, Taco Hoekwater wrote: > > Mojca Miklavec wrote: >> >> Hans, Taco - does LuaTeX itself know if it's 64-bit or not? > > Only internally at the moment, but I could add a variable > in the os library (after I figure out which of the sizeof()'s > is the best one to use). When outside the binary one can run "file" for example: > file osx-intel/current/luatex/beta-0.45.0/luatex osx-intel/current/luatex/beta-0.45.0/luatex: Mach-O executable i386 > file osx-ppc/current/luatex/beta-0.45.0/luatex osx-ppc/current/luatex/beta-0.45.0/luatex: Mach-O executable ppc > file osx-64/current/luatex/beta-0.45.0/luatex osx-64/current/luatex/beta-0.45.0/luatex: Mach-O 64-bit executable x86_64 > file linux/current/luatex/beta-0.44.0/luatex linux/current/luatex/beta-0.44.0/luatex: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.2.5, dynamically linked (uses shared libs), stripped > file linux-64/current/luatex/beta-0.44.0/luatex linux-64/current/luatex/beta-0.44.0/luatex: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), for GNU/Linux 2.6.4, dynamically linked (uses shared libs), stripped But I have no idea if there is some simple way to hardcode the target architecture into LuaTeX itself. (Apart from compiling "hello world", running "file" on it, doing a platform-dependent regular expression and passing that value to luatex at compile time. But that would be really really ugly.) gcc could be as kind as returning the architecture on request. Yes, I know, I should be dreaming at night, not in the middle of day. Mojca ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________