diff: bug fix for compilation with tracing
Zoltan Somogyi
zs at cs.mu.OZ.AU
Thu Apr 15 15:02:37 AEST 1999
Apologies for inadvertently including the diff for this change
in with the diff of my last mail. The two changes will be committed
indepedently.
Estimated hours taken: 0.5
compiler/mercury_compile.m:
Fix an oversight: when compiling some source files directly to
an executable, include the trace and browser libraries in the
list of libraries to be linked in if the compiler options specify
execution tracing.
Zoltan.
Index: compiler/mercury_compile.m
===================================================================
RCS file: /home/mercury1/repository/mercury/compiler/mercury_compile.m,v
retrieving revision 1.121
diff -u -b -u -r1.121 mercury_compile.m
--- mercury_compile.m 1999/03/28 07:30:40 1.121
+++ mercury_compile.m 1999/04/05 12:03:53
@@ -2485,7 +2485,14 @@
{ join_string_list(LinkLibraryDirectoriesList, "-L", "",
" ", LinkLibraryDirectories) },
globals__io_lookup_accumulating_option(link_libraries,
- LinkLibrariesList),
+ LinkLibrariesOptions),
+ { TraceLevel \= none ->
+ LinkLibrariesList = LinkLibrariesOptions
+ ;
+ list__append(LinkLibrariesOptions,
+ ["mer_trace", "mer_browser"],
+ LinkLibrariesList)
+ },
{ join_string_list(LinkLibrariesList, "-l", "", " ",
LinkLibraries) },
globals__io_lookup_accumulating_option(link_objects,
More information about the developers
mailing list