[m-rev.] diff: Fix references to unassigned mmake variables.

Peter Wang novalazy at gmail.com
Tue Jan 31 15:31:08 AEDT 2023


compiler/write_deps_file.m:
    Fix reference to used_subdir, should be useds_subdir.

scripts/Mmake.vars.in:
    Assign analysiss_subdir variable.

diff --git a/compiler/write_deps_file.m b/compiler/write_deps_file.m
index 88a4402ac..0c9f32006 100644
--- a/compiler/write_deps_file.m
+++ b/compiler/write_deps_file.m
@@ -1553,7 +1553,7 @@ generate_dv_file(Globals, SourceFileName, ModuleName, DepsMap,
     MmakeVarPicOs = mmake_var_defn(ModuleMakeVarName ++ ".pic_os",
         string.format("$(%s.all_pic_os)", [s(ModuleMakeVarName)])),
     MmakeVarUseds = mmake_var_defn(ModuleMakeVarName ++ ".useds",
-        string.format("$(%s.mods:%%=$(used_subdir)%%.used)",
+        string.format("$(%s.mods:%%=$(useds_subdir)%%.used)",
             [s(ModuleMakeVarName)])),
     MmakeVarJavas = mmake_var_defn(ModuleMakeVarName ++ ".javas",
         string.format("$(%s.mods:%%=$(javas_subdir)%%.java)",
diff --git a/scripts/Mmake.vars.in b/scripts/Mmake.vars.in
index e6217eca7..ca73c7078 100644
--- a/scripts/Mmake.vars.in
+++ b/scripts/Mmake.vars.in
@@ -514,6 +514,7 @@ int2s_subdir=$(SUBDIR)int2s/
 int3s_subdir=$(SUBDIR)int3s/
 opts_subdir=$(SUBDIR)opts/
 trans_opts_subdir=$(SUBDIR)trans_opts/
+analysiss_subdir=$(SUBDIR)analysiss/
 requests_subdir=$(SUBDIR)requests/
 imdgs_subdir=$(SUBDIR)imdgs/
 date0s_subdir=$(SUBDIR)date0s/
@@ -550,6 +551,7 @@ int2s_subdir=
 int3s_subdir=
 opts_subdir=
 trans_opts_subdir=
+analysiss_subdir=
 requests_subdir=
 imdgs_subdir=
 date0s_subdir=
-- 
2.39.0



More information about the reviews mailing list