Skip to content

Commit

Permalink
build: escape vcvarsall command
Browse files Browse the repository at this point in the history
  • Loading branch information
TheMrMilchmann committed Nov 3, 2021
1 parent 578be77 commit 7a50975
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 "${(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 7a50975

Please sign in to comment.