[m-rev.] diff: revert change which broke mmc --make for hlc.gc

Peter Wang novalazy at gmail.com
Tue May 12 21:31:41 AEST 2009


Branches: main

compiler/file_names.m:
        Revert part of a change to support submodules in Java backend
        but broke the high level C backend.

diff --git a/compiler/file_names.m b/compiler/file_names.m
index 17c5b16..c0ef87b 100644
--- a/compiler/file_names.m
+++ b/compiler/file_names.m
@@ -268,8 +268,11 @@ choose_file_name(_ModuleName, BaseParentDirs, BaseName, Ext, Search, MkDir,
             )
         )
     ->
-        make_file_name(BaseParentDirs, do_not_search, do_create_dirs, BaseName,
-            Ext, FileName, !IO)
+        % XXX this was part of a change to support submodules in Java
+        % but broke the high level C backend
+        % make_file_name(BaseParentDirs, do_not_search, do_create_dirs,
+        %   BaseName, Ext, FileName, !IO)
+        FileName = BaseName
     ;
         % The source files, the final executables, library files (including
         % .init files) output files intended for use by the user, and phony


--------------------------------------------------------------------------
mercury-reviews mailing list
Post messages to:       mercury-reviews at csse.unimelb.edu.au
Administrative Queries: owner-mercury-reviews at csse.unimelb.edu.au
Subscriptions:          mercury-reviews-request at csse.unimelb.edu.au
--------------------------------------------------------------------------



More information about the reviews mailing list