Browse Source

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

Godzil 11 years ago
parent
commit
d627b11b98
2 changed files with 9 additions and 5 deletions
  1. 8 4
      mach/proto/as/pmfile
  2. 1 1
      util/ncgg/pmfile

+ 8 - 4
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"),
 	}

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