Skip to content

Commit

Permalink
Fix separate compilation for ConstantsGen
Browse files Browse the repository at this point in the history
A combination of commands triggered separate compilation
that only recompiled part of builtins. A mechanism that workaround
annotation processor's problems with separate compilation was updated to
include changes from #4111.
This was pretty tough to find given the rather unusual circumstances in
CI.
  • Loading branch information
hubertp committed Feb 10, 2023
1 parent 1f8511d commit 4cd1ef4
Showing 1 changed file with 15 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -136,15 +136,21 @@ protected void storeMetadata(Writer writer, Map<String, TypeMetadataEntry> pastE
.values()
.forEach(
entry ->
entry.stdlibName().ifPresent(n ->
out.println(
" public static final String "
+ entry.ensoName().toUpperCase()
+ " = \""
+ n
+ "\";")
)
);
entry.stdlibName().ifPresent(n -> {
out.println(
" public static final String "
+ entry.ensoName().toUpperCase()
+ " = \""
+ n
+ "\";");
out.println(
" public static final String "
+ entry.ensoName().toUpperCase() + "_BUILTIN"
+ " = \""
+ n
+ "\";");
})
);

out.println();
out.println("}");
Expand Down

0 comments on commit 4cd1ef4

Please sign in to comment.