Skip to content

Commit

Permalink
build: fix WIN_BUILD_TOOLS_DIR local lookup
Browse files Browse the repository at this point in the history
  • Loading branch information
TheMrMilchmann committed Nov 3, 2021
1 parent c4d7e3b commit 70ea057
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ tasks {

argsFile.writeText(
"""
|call "${(extra.properties["WIN_BUILD_TOOLS_DIR"] ?: System.getenv("WIN_BUILD_TOOLS_DIR")).let {if (it != null) File(it as String, "vcvarsall.bat").absolutePath else "vcvarsall.bat" }}" x64
|call "${(project.extra.properties["WIN_BUILD_TOOLS_DIR"] ?: System.getenv("WIN_BUILD_TOOLS_DIR")).let { if (it != null) File(it as String, "vcvarsall.bat").absolutePath else "vcvarsall.bat" }}" x64
|cl /LD /Wall /O2 /I${compiler.metadata.installationPath}/include /I${compiler.metadata.installationPath}/include/win32 ${nativeSources.asPath} /Fe:${output.absolutePath}"
""".trimMargin()
)
Expand Down

0 comments on commit 70ea057

Please sign in to comment.