Fix declaration to file mapping: use path instead of name

This commit is contained in:
Pavel Punegov
2018-12-28 20:16:22 +03:00
committed by Pavel Punegov
parent 6858090989
commit 11e33882bb
2 changed files with 2 additions and 3 deletions
+1 -2
View File
@@ -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')}",
@@ -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
}
})