Ver código fonte

Fixed a compilation error that was causing opt to not have its
peephole optimisation tables, which would make it generate
duff code.

dtrg 17 anos atrás
pai
commit
7ce42ea371
1 arquivos alterados com 11 adições e 3 exclusões
  1. 11 3
      util/opt/pmfile

+ 11 - 3
util/opt/pmfile

@@ -44,8 +44,9 @@ local local_tool_opt = cprogram {
 		simple {
 			outputs = {"%U%-pattern.c"},
 			command = {
-				"%in[1]% %in[2]% > %out%"
+				"%in[1]% < %in[2]% > %out%"
 			},
+			install = pm.install("pattern.c"),
 
 			cprogram {
 				CLIBRARIES = {PARENT, "fl"},
@@ -66,7 +67,9 @@ local local_tool_opt = cprogram {
 				lib_em_data,
 			},
 
-			file (d.."patterns")
+			preprocess {
+				file (d.."patterns")
+			}
 		}
 	},
 
@@ -95,7 +98,12 @@ tool_opt = group {
 
 -- Revision history
 -- $Log$
--- Revision 1.3  2006-10-15 00:28:12  dtrg
+-- Revision 1.4  2007-02-20 00:27:01  dtrg
+-- Fixed a compilation error that was causing opt to not have its
+-- peephole optimisation tables, which would make it generate
+-- duff code.
+--
+-- Revision 1.3  2006/10/15 00:28:12  dtrg
 -- Updated to the version 0.1 of Prime Mover (which involves some syntax changes).
 --
 -- Revision 1.2  2006/07/20 23:10:07  dtrg