From: Godzil Date: Thu, 21 Mar 2013 00:34:07 +0000 (+0100) Subject: Do not use ACK cpp (even ANSI one) to compile for the host. X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=d627b11b98d3d071f8d69ffc59e32598df042a16;p=ack.git Do not use ACK cpp (even ANSI one) to compile for the host. --- diff --git a/mach/proto/as/pmfile b/mach/proto/as/pmfile index c908fceb5..f40c95e3e 100644 --- a/mach/proto/as/pmfile +++ b/mach/proto/as/pmfile @@ -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"), } diff --git a/util/ncgg/pmfile b/util/ncgg/pmfile index 52c547feb..559c865f2 100644 --- a/util/ncgg/pmfile +++ b/util/ncgg/pmfile @@ -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]%" }, }