Do not use ACK cpp (even ANSI one) to compile for the host.
This commit is contained in:
parent
da1cb44497
commit
d627b11b98
@ -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"),
|
||||
}
|
||||
|
||||
@ -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]%"
|
||||
},
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user