Do not use ACK cpp (even ANSI one) to compile for the host.

This commit is contained in:
Godzil 2013-03-21 01:34:07 +01:00 committed by Manoël Trapier
parent da1cb44497
commit d627b11b98
2 changed files with 9 additions and 5 deletions

View 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"),
}

View 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]%"
},
}