Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions c/raylib_bindings.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,15 @@
#include <string.h>
#include <stdlib.h>

// Lean 4.30.0+ runs `main` on a new thread but UI should run on the OS main
// thread (and this is mandatory on macOS), so opt out before `main` runs.
// https://github.com/leanprover/lean4/pull/12971
__attribute__((constructor))
static void raylean_force_main_thread(void) {
// set overwrite=0 so users may force the threaded behavior using the shell
setenv("LEAN_MAIN_USE_THREAD", "0", 0);
}

#define IO_UNIT (lean_io_result_mk_ok(lean_box(0)))

#ifdef RAYLEAN_NO_BUNDLE
Expand Down
5 changes: 3 additions & 2 deletions lake-manifest.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{"version": "1.1.0",
{"version": "1.2.0",
"packagesDir": ".lake/packages",
"packages":
[{"url": "https://github.com/funexists/lens-demo.git",
Expand All @@ -22,4 +22,5 @@
"inherited": false,
"configFile": "lakefile.toml"}],
"name": "raylean",
"lakeDir": ".lake"}
"lakeDir": ".lake",
"fixedToolchain": false}
2 changes: 1 addition & 1 deletion lean-toolchain
Original file line number Diff line number Diff line change
@@ -1 +1 @@
leanprover/lean4:v4.28.0
leanprover/lean4:v4.30.0
Loading