[m-rev.] diff: fix foreign_proc IL bug.

Tyson Dowd trd at miscrit.be
Tue Aug 21 20:01:12 AEST 2001


Hi,


===================================================================


Estimated hours taken: 0.5
Branches: main

Fix a bug that stopped foreign_proc IL code from working.

compiler/handle_options.m:
	Fix an oversight -- IL needs to be in the list of backend
	languages for it to be used.



Index: compiler/handle_options.m
===================================================================
RCS file: /home/mercury1/repository/mercury/compiler/handle_options.m,v
retrieving revision 1.117
diff -u -r1.117 handle_options.m
--- compiler/handle_options.m	2001/08/13 07:46:50	1.117
+++ compiler/handle_options.m	2001/08/20 16:04:15
@@ -733,13 +733,13 @@
 	option_implies(use_opt_files, warn_missing_opt_files, bool(no)),
 
 
-	% The preferred backend foreign language depends on the target.
+	% The backend foreign languages depend on the target.
 	( 	
 		{ Target = c },
 		{ BackendForeignLanguages = ["c"] }
 	;
 		{ Target = il },
-		{ BackendForeignLanguages = ["csharp", "mc++"] }
+		{ BackendForeignLanguages = ["il", "csharp", "mc++"] }
 	;
 		{ Target = asm },
 		% XXX This is wrong!  It should be asm.

--------------------------------------------------------------------------
mercury-reviews mailing list
post:  mercury-reviews at cs.mu.oz.au
administrative address: owner-mercury-reviews at cs.mu.oz.au
unsubscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: unsubscribe
subscribe:   Address: mercury-reviews-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------



More information about the reviews mailing list