Skip to content
This repository has been archived by the owner on Aug 10, 2021. It is now read-only.

Fix .def file generation. #1859

Merged
merged 1 commit into from
Aug 10, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -870,7 +870,7 @@ internal class CAdapterGenerator(
outputStreamWriter.close()

if (context.config.target.family == Family.MINGW) {
outputStreamWriter = context.config.tempFiles
outputStreamWriter = context.config.outputFiles
.cAdapterDef
.printWriter()
output("EXPORTS")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ class OutputFiles(outputPath: String?, target: KonanTarget, produce: CompilerOut
* Header file for dynamic library
*/
val cAdapterHeader by lazy { File("${outputName}_api.h") }
val cAdapterDef by lazy { File("${outputName}_symbols.def") }

/**
* Main compiler's output file
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ class TempFiles(outputPath: String, pathToTemporaryDir: String? = null) {
private val outputName = File(outputPath).name

val nativeBinaryFile by lazy { File(dir,"${outputName}.kt.bc") }
val cAdapterDef by lazy { File(dir,"${outputName}_symbols.def") }
val cAdapterCpp by lazy { File(dir, "api.cpp") }
val cAdapterBitcode by lazy { File(dir, "api.bc") }

Expand Down