Fix declaration to file mapping: use path instead of name
This commit is contained in:
committed by
Pavel Punegov
parent
6858090989
commit
11e33882bb
@@ -196,8 +196,7 @@ targetList.each { target ->
|
||||
"-Dfile.encoding=UTF-8"]
|
||||
|
||||
def defaultArgs = ['-nopack', '-nostdlib', '-nodefaultlibs', '-ea' ]
|
||||
// FIXME: disabled temporary while it fails to build with debug info
|
||||
// if (target != "wasm32") defaultArgs += '-g'
|
||||
if (target != "wasm32") defaultArgs += '-g'
|
||||
def konanArgs = [*defaultArgs,
|
||||
'-target', target,
|
||||
"-Xruntime=${project(':runtime').file('build/' + target +'/runtime.bc')}",
|
||||
|
||||
+1
-1
@@ -63,7 +63,7 @@ class ModuleIndex(val module: IrModuleFragment) {
|
||||
|
||||
override fun visitDeclaration(declaration: IrDeclaration) {
|
||||
super.visitDeclaration(declaration)
|
||||
declarationToFile[declaration.descriptor] = currentFile!!.name
|
||||
declarationToFile[declaration.descriptor] = currentFile!!.path
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user