[m-rev.] diff: fix bug in code that builds C compiler options

Zoltan Somogyi zs at cs.mu.OZ.AU
Wed Mar 12 19:00:56 AEDT 2003


compiler/compile_target_code.m:
	Fix a bug: the absence of a space between options could cause
	two to run together, confusing the C compiler.

Zoltan.

Index: compile_target_code.m
===================================================================
RCS file: /home/mercury1/repository/mercury/compiler/compile_target_code.m,v
retrieving revision 1.40
diff -u -b -r1.40 compile_target_code.m
--- compile_target_code.m	14 Feb 2003 09:57:24 -0000	1.40
+++ compile_target_code.m	12 Mar 2003 07:57:17 -0000
@@ -543,7 +543,8 @@
 	globals__io_lookup_bool_option(target_debug, Target_Debug),
 	( { Target_Debug = yes } ->
 		globals__io_lookup_string_option(cflags_for_debug,
-			Target_DebugOpt)
+			Target_DebugOpt0),
+		{ string__append(Target_DebugOpt0, " ", Target_DebugOpt) }
 	;
 		{ Target_DebugOpt = "" }
 	),
--------------------------------------------------------------------------
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