K2 CLI: wrap module name into angle brackets

This is not a user-visible change, so no issue is created and no tests
are added.

K1 uses angle brackets, and it will be very convenient to have the same
module names in K1 and K2, in particular to compare IR dumps where
almost everything is the same (up to a certain point) except the module
name.
This commit is contained in:
Alexander Udalov
2023-06-19 23:41:02 +02:00
committed by Space Team
parent b6847d0835
commit 8653992ffc
3 changed files with 3 additions and 3 deletions
@@ -357,7 +357,7 @@ private fun doCompileWithK2(
friendPaths = emptyList()
)
val session = prepareJvmSessions(
sourceFiles, kotlinCompilerConfiguration, projectEnvironment, Name.identifier(rootModuleName), extensionRegistrars,
sourceFiles, kotlinCompilerConfiguration, projectEnvironment, Name.special("<$rootModuleName>"), extensionRegistrars,
librariesScope, libraryList, isCommonSourceForPsi, fileBelongsToModuleForPsi,
createProviderAndScopeForIncrementalCompilation = { files ->
createContextForIncrementalCompilation(