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

Commit

Permalink
Fix .def file generation. (#1859)
Browse files Browse the repository at this point in the history
  • Loading branch information
olonho authored and homuroll committed Aug 10, 2018
1 parent bd50d00 commit c9a702f
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
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

0 comments on commit c9a702f

Please sign in to comment.