Skip to content

Commit

Permalink
try different stdc++ linker
Browse files Browse the repository at this point in the history
  • Loading branch information
T-Brick committed Feb 28, 2024
1 parent df38a52 commit 604b56d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lakefile.lean
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ target datetime.o pkg : FilePath := do
let oFile := pkg.buildDir / "DateTime" / "c" / "datetime.o"
let srcJob ← inputFile <| pkg.dir / "DateTime" / "c" / "datetime.cpp"
let weakArgs := #["-I", (← getLeanIncludeDir).toString]
buildO "datetime.cpp" oFile srcJob weakArgs #["-fPIC", "-lstdc++"] (compiler := "cc") getLeanTrace
buildO "datetime.cpp" oFile srcJob weakArgs #["-fPIC", "-lstdc++.so.6"] (compiler := "cc") getLeanTrace

extern_lib lib_datetime pkg := do
extern_lib libleandatetime pkg := do
let name := nameToStaticLib "datetime"
let datetimeO ← fetch <| pkg.target ``datetime.o
buildStaticLib (pkg.nativeLibDir / name) #[datetimeO]

0 comments on commit 604b56d

Please sign in to comment.