Inline input_file declaration into sdlObj target

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Greg Shuflin
2026-03-16 20:01:24 -07:00
co-authored by Claude Opus 4.6
parent 66b2262676
commit 8072a56f7c
+1 -5
View File
@@ -52,12 +52,8 @@ def sdlDeps : List GitDep := [sdlDep, sdlImageDep, sdlTtfDep, sdlMixerDep]
-- TODO: at some point, we should figure out a better way to set the C compiler
def compiler := if Platform.isWindows then "gcc" else "cc"
input_file sdlSrc where
path := "c" / "sdl.c"
text := true
target sdlObj pkg : FilePath := do
let srcJob ← sdlSrc.fetch
let srcJob ← inputTextFile (pkg.dir / "c" / "sdl.c")
let oFile := pkg.buildDir / "c" / "sdl.o"
let leanInclude := <- getLeanIncludeDir