Do not use ACK cpp (even ANSI one) to compile for the host.
authorGodzil <godzil@godzil.net>
Thu, 21 Mar 2013 00:34:07 +0000 (01:34 +0100)
committerManoël Trapier <godzil@MacBook-Pro.home>
Wed, 24 Jun 2015 22:41:48 +0000 (23:41 +0100)
mach/proto/as/pmfile
util/ncgg/pmfile

index c908fce..f40c95e 100644 (file)
@@ -6,10 +6,14 @@ local d = ROOTDIR.."mach/proto/as/"
 local parser = yacc {
        simple {
                outputs = {"%U%-%I%.y"},
-               command = {
-                       "cd %out[1]:dirname% && "..
-                         "%BINDIR%%PLATDEP%/cpp.ansi -P -I%ROOTDIR%mach/%ARCH%/as -I"..d.." %CINCLUDES:cincludes% %in[1]% > %out[1]%"
-               },
+--             command = {
+--                     "cd %out[1]:dirname% && "..
+--                       "%BINDIR%%PLATDEP%/cpp.ansi -P -I%ROOTDIR%mach/%ARCH%/as -I"..d.." %CINCLUDES:cincludes% %in[1]% > %out[1]%"
+--             },
+      command = {
+         "cd %out[1]:dirname% && "..
+         "cpp -P -I%ROOTDIR%mach/%ARCH%/as -I"..d.." %CINCLUDES:cincludes% %in[1]% > %out[1]%"
+      },
                
                file (d.."comm2.y"),
        }
index 52c547f..559c865 100644 (file)
@@ -61,7 +61,7 @@ ncgg = simple {
        
        outputs = {"%U%/tables.c", "%U%/tables.h"},
        command = {
-               "cd %out[1]:dirname% && (%BINDIR%%PLATDEP%/cpp.ansi -P -I%NCGGINCLUDEDIR% %in% | %TOOLDIR%ncgg)",
+               "cd %out[1]:dirname% && (cpp -P -I%NCGGINCLUDEDIR% %in% | %TOOLDIR%ncgg)",
                "mv %out[1]:dirname%/tables.H %out[2]%"
        },
 }