emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Emacs 22 Carbon+AppKit port and Emacs 23 Mac port


From: YAMAMOTO Mitsuharu
Subject: Re: Emacs 22 Carbon+AppKit port and Emacs 23 Mac port
Date: Wed, 09 Sep 2009 10:04:13 +0900
User-agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.8 (Shijō) APEL/10.6 Emacs/22.3 (sparc-sun-solaris2.8) MULE/5.0 (SAKAKI)

>>>>> On Tue, 08 Sep 2009 18:38:03 +0800, CHENG Gao <address@hidden> said:

> Out of curiosity, I tried to build Mac port (1.92) with clang, and
> found it works well, while building 32bit ns port fails.

The Mac port and the Carbon+AppKit port have contained a small kludge
for LLVM-based compilers (llvm-gcc for 10.5, llvm-gcc and clang for
10.6) bundled with Xcode since their first versions.

RCS file: /cvsroot/emacs/emacs/src/m/intel386.h,v
retrieving revision 1.42.2.4
diff -c -p -r1.42.2.4 intel386.h
*** src/m/intel386.h    27 Feb 2008 23:32:04 -0000      1.42.2.4
--- src/m/intel386.h    6 Sep 2008 04:51:04 -0000
*************** NOTE-END */
*** 215,221 ****
  #endif
  
  #if defined (MAC_OSX) || defined (DARWIN)
! #ifdef _LP64
  /* For Intel Mac, with CC='gcc -arch x86_64'.  */
  #define NO_ARG_ARRAY
  #endif
--- 215,221 ----
  #endif
  
  #if defined (MAC_OSX) || defined (DARWIN)
! #if defined (_LP64) || defined (__llvm__)
  /* For Intel Mac, with CC='gcc -arch x86_64'.  */
  #define NO_ARG_ARRAY
  #endif

I'm not sure if it is applicable to all versions of LLVM-based
compilers or all target architectures.  So I just put it as a "kludge"
for unofficial ports.

You can also turn on link-time optimization option (-O4) on intel
processors though it takes much more time to build.  IIRC, it didn't
work well for ppc64.

                                     YAMAMOTO Mitsuharu
                                address@hidden




reply via email to

[Prev in Thread] Current Thread [Next in Thread]