dotgnu-pnet-commits
[Top][All Lists]
Advanced

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

[Dotgnu-pnet-commits] CVS: pnet/cscc/common cc_main.c,1.27,1.28


From: Jonathan Springer <address@hidden>
Subject: [Dotgnu-pnet-commits] CVS: pnet/cscc/common cc_main.c,1.27,1.28
Date: Sun, 23 Mar 2003 13:01:03 -0500

Update of /cvsroot/dotgnu-pnet/pnet/cscc/common
In directory subversions:/tmp/cvs-serv27819/cscc/common

Modified Files:
        cc_main.c 
Log Message:


Change for darwin pre-compiler.


Index: cc_main.c
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnet/cscc/common/cc_main.c,v
retrieving revision 1.27
retrieving revision 1.28
diff -C2 -r1.27 -r1.28
*** cc_main.c   17 Feb 2003 18:11:16 -0000      1.27
--- cc_main.c   23 Mar 2003 18:01:01 -0000      1.28
***************
*** 582,586 ****
  {
        char *newPath = 0;
!       if(ILFileExists("/usr/bin/cpp", &newPath))
        {
                if(newPath)
--- 582,593 ----
  {
        char *newPath = 0;
!       if(ILFileExists("/usr/bin/cpp3", &newPath))
!       {
!               if(newPath)
!                       return newPath;
!               else
!                       return "/usr/bin/cpp3";
!       }
!       else if(ILFileExists("/usr/bin/cpp", &newPath))
        {
                if(newPath)
***************
*** 790,793 ****
--- 797,810 ----
                   wouldn't be necessary if "-undef" actually did what it is
                   supposed to do, but it only undefines some symbols, not all 
*/
+ #ifdef __APPLE__ 
+ #ifdef __MACH__
+               /* Apple shipped a special "pre-compiled header" CPP with the
+                  Darwin OS.  That obviously won't do us much good here, so
+                  we need to set a flag to fall back on standard headers.
+ 
+                       TODO:  Can this end be achieved dynamically?  */
+               CCStringListAdd(&argv, &argc, "-no-cpp-precomp");
+ #endif
+ #endif
                CCStringListAdd(&argv, &argc, "-w");
                CCStringListAdd(&argv, &argc, "-nostdinc");





reply via email to

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