Skip to content

Commit

Permalink
NIT Use cleaner paths
Browse files Browse the repository at this point in the history
With \ separator everywhere
  • Loading branch information
alexarchambault committed Dec 27, 2024
1 parent da8528c commit 29e048a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions settings.sc
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ trait HasCSources extends JavaModule with PublishModule {
else
Nil
}
val javaHome0 = windowsJavaHome()
val javaHome0 = os.Path(windowsJavaHome())
for (f <- cFiles) yield {
if (!os.exists(destDir))
os.makeDir.all(destDir)
Expand All @@ -134,7 +134,7 @@ trait HasCSources extends JavaModule with PublishModule {
val script =
s"""@call "$vcvars"
|if %errorlevel% neq 0 exit /b %errorlevel%
|cl /I $q$javaHome0/include$q /I $q$javaHome0/include/win32$q /utf-8 /c $q$f$q
|cl /I $q${javaHome0 / "include"}$q /I $q${javaHome0 / "include/win32"}$q /utf-8 /c $q$f$q
|""".stripMargin
val scriptPath = T.dest / "run-cl.bat"
os.write.over(scriptPath, script.getBytes, createFolders = true)
Expand Down

0 comments on commit 29e048a

Please sign in to comment.