-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix filling Main-Class attribute in manifest file of output jar
Before 5b7cee6 JVM CLI compiler was calling `KotlinToJVMBytecodeCompiler.compileBunchOfSources`. `compileBunchOfSources` detected possible main classes, and filled the Main-Class attribute in output jar if if there was only one candidate. After the change JVM CLI began calling `KotlinToJVMBytecodeCompiler.compileModules`, which was not searching for a main class. This change adds searching for main classes to `compileModules`. We search for a main class only when one module is compiled, and an output is written a jar file (so the change only affects JVM CLI compilation). #KT-32272 Fixed
- Loading branch information
1 parent
ffc4096
commit 270219d
Showing
2 changed files
with
53 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters