Skip to content

Commit

Permalink
try using clang
Browse files Browse the repository at this point in the history
  • Loading branch information
T-Brick committed Feb 28, 2024
1 parent d3d11d2 commit 30cef83
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions DateTime/c/datetime.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
Authors: Thea Brick
*/
#include <lean/lean.h>
#include <chrono>

/* DateTime.now_iso_seconds : IO String */
extern "C" LEAN_EXPORT lean_object * lean_datetime_now_iso_sec(lean_object * /* w */) {
Expand Down
2 changes: 1 addition & 1 deletion lakefile.lean
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ 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 := "g++") getLeanTrace
buildO "datetime.cpp" oFile srcJob weakArgs #["-fPIC", "-lstdc++.so.6"] (compiler := "clang") getLeanTrace

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

0 comments on commit 30cef83

Please sign in to comment.