This is an automated email from the ASF dual-hosted git repository.
joshtynjala pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-compiler.git
The following commit(s) were added to refs/heads/develop by this push:
new 488fc5fbc GoogDepsWriter: Fixed missing symbols specified with
-includes compiler option in generated JS.
488fc5fbc is described below
commit 488fc5fbc7f5f5a638d8832a385886cf66c6246a
Author: Josh Tynjala <[email protected]>
AuthorDate: Tue Jun 16 09:45:33 2026 -0700
GoogDepsWriter: Fixed missing symbols specified with -includes compiler
option in generated JS.
---
RELEASE_NOTES.md | 1 +
.../org/apache/royale/compiler/internal/graph/GoogDepsWriter.java | 6 ++++++
2 files changed, 7 insertions(+)
diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md
index 3c26ff715..c91821504 100644
--- a/RELEASE_NOTES.md
+++ b/RELEASE_NOTES.md
@@ -86,6 +86,7 @@ Apache Royale Compiler 1.0.0
- compiler: Fixed missing require for package-level functions or variables in
some situations.
- compiler: Fixed missing binding data caused by thread conflicts.
- compiler: Fixed lost typing information in method bodies when emitting
JavaScript in some circumstances.
+- compiler: Fixed missing symbols specified with `-includes` compiler option
in generated JS.
- debugger: Added missing isolate ID to SWF load and unload events.
- debugger: Fixed debugger targeting the current JDK version instead of the
intended minimum JDK version.
- debugger: Fixed localized messages appearing as unprocessed tokens.
diff --git
a/compiler-jx/src/main/java/org/apache/royale/compiler/internal/graph/GoogDepsWriter.java
b/compiler-jx/src/main/java/org/apache/royale/compiler/internal/graph/GoogDepsWriter.java
index ec9d24857..426b4bb1d 100644
---
a/compiler-jx/src/main/java/org/apache/royale/compiler/internal/graph/GoogDepsWriter.java
+++
b/compiler-jx/src/main/java/org/apache/royale/compiler/internal/graph/GoogDepsWriter.java
@@ -72,6 +72,7 @@ public class GoogDepsWriter {
sourceMapsSourceRoot = config.getSourceMapSourceRoot();
otherPaths = config.getSDKJSLib();
verbose = config.isVerbose();
+ includes = config.getIncludes();
otherPaths.add(new File(outputFolder.getParent(),
"royale/Royale/src").getPath());
this.swcs = swcs;
if (verbose)
@@ -87,6 +88,7 @@ public class GoogDepsWriter {
private String moduleOutput;
private String outputFolderPath;
private String mainName;
+ private Set<String> includes;
private List<String> otherPaths;
private List<ISWC> swcs;
private boolean removeCirculars = false;
@@ -466,6 +468,10 @@ public class GoogDepsWriter {
return false;
}
addDeps(mainName);
+ for (String includeName : includes)
+ {
+ addDeps(includeName);
+ }
return true;
}