We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 42d2b4e commit 81c5840Copy full SHA for 81c5840
1 file changed
lakefile.lean
@@ -19,7 +19,7 @@ target UnicodeCLib pkg : FilePath := do
19
if file.path.extension == some "c" then
20
let obj := pkg.buildDir / "UnicodeCLib" / ((file.fileName.dropSuffix ".c" |>.copy) ++ ".o")
21
let src ← inputTextFile file.path
22
- let weakArgs := #["-I", (← getLeanIncludeDir).toString, "-O", "-fPIC"]
+ let weakArgs := #["-I", (← getLeanIncludeDir).toString, "-I", (pkg.dir / "UnicodeCLib").toString, "-O", "-fPIC"]
23
oFiles := oFiles.push <| ← buildO obj src weakArgs
24
let name := nameToStaticLib "unicodeclib"
25
buildStaticLib (pkg.sharedLibDir / name) oFiles
0 commit comments