Skip to content

Commit

Permalink
move flags around
Browse files Browse the repository at this point in the history
  • Loading branch information
T-Brick committed Feb 28, 2024
1 parent 30cef83 commit a967342
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 @@ -16,8 +16,8 @@ lean_exe «datetime» where
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++.so.6"] (compiler := "clang") getLeanTrace
let flags := #["-I", (← getLeanIncludeDir).toString, "-fPIC"]
buildO "datetime.cpp" oFile srcJob flags #[] "c++" getLeanTrace

extern_lib libleandatetime pkg := do
let name := nameToStaticLib "datetime"
Expand Down

0 comments on commit a967342

Please sign in to comment.