Commit graph

40 commits

Author SHA1 Message Date
Sebastian Ullrich
7c79f05cd4
feat: API to avoid deadlocks from dropped promises (#6958)
This PR improves the `Promise` API by considering how dropped promises
can lead to never-finished tasks.
2025-02-07 15:33:10 +00:00
Sebastian Ullrich
2a891a3889
chore: CMAKE_CXX_SYSROOT_FLAG is also needed for linking (#6297)
Fixes #6296
2024-12-03 16:14:22 +00:00
Alexander Bentkamp
7dc1618ca5
feat: Web Assembly Build (#2599)
Co-authored-by: Rujia Liu <rujialiu@user.noreply.github.com>
2023-10-04 09:04:20 +02:00
Sebastian Ullrich
3eeeca22e2 chore: lean-gdb: recursive values & tag 2022-06-26 18:47:47 +02:00
Sebastian Ullrich
4a9bc88a4e chore: fix USE_GMP=OFF by removing GMP linking customization 2022-03-26 16:29:52 +01:00
Sebastian Ullrich
c8c39aa4bb chore: lean-gdb: fix RC printing 2021-12-15 15:58:31 +01:00
Sebastian Ullrich
ac5afd6b71 chore: fix leanc.sh -v 2021-11-18 09:42:35 +01:00
Sebastian Ullrich
27bc6397a0 fix: actually link against GMP statically 2021-11-18 09:42:35 +01:00
Sebastian Ullrich
d2a1e20dd0 feat: bundling LLVM on Linux 2021-11-18 09:42:35 +01:00
Gabriel Ebner
3818cbc897 fix: lean-gdb 2021-10-26 20:19:27 +02:00
Sebastian Ullrich
2be3d97cdd chore: leanc: typo & minor modifications 2021-09-28 14:15:58 +02:00
Sebastian Ullrich
ae0308fc04 chore: leanc: do not pass linking flags when not linking, again 2021-09-27 17:40:59 +02:00
Sebastian Ullrich
e6927253cf feat: use leanc written in Lean for testing & distribution
building is still handled by a (minimal) Bash script for bootstrapping purposes
2021-09-25 09:59:50 +02:00
Sebastian Ullrich
01325170a6 feat: make LEANC_CC configurable 2021-09-08 17:24:31 +02:00
Sebastian Ullrich
ab9a31a806 refactor: leanc: use case 2021-09-08 17:24:31 +02:00
Sebastian Ullrich
9702fe1981 chore: leanc: use C instead of C++ compiler 2021-09-08 17:24:31 +02:00
Sebastian Ullrich
5f4b1b1d44 Revert "Revert "feat: reintroduce libleanshared, link lean & leanpkg against it""
This reverts commit ccbc9d00db.
2021-08-20 09:42:05 -07:00
Sebastian Ullrich
ccbc9d00db Revert "feat: reintroduce libleanshared, link lean & leanpkg against it" 2021-08-20 15:39:00 +02:00
Sebastian Ullrich
f33cdf6bf9 fix: linking against dl 2021-08-19 19:44:28 +02:00
Sebastian Ullrich
88f3de7a44 chore: link leanshared using leanc after all 2021-08-18 13:54:52 +02:00
Sebastian Ullrich
d9337fa39c chore: fix multiple definitions on Windows 2021-08-18 13:54:52 +02:00
Sebastian Ullrich
4ed66cae3e feat: add --print-prefix, --print-libdir flags
The names were taken from `llvm-config`
2021-06-11 17:53:51 -07:00
Wojciech Nawrocki
d92e4a7cf1 chore: restore LEANC_EXTRA_FLAGS
We now pass them to both compilers and linkers. For example, -pthread should be given to both: https://stackoverflow.com/questions/2127797/significance-of-pthread-flag-when-compiling
2021-06-06 15:34:44 +02:00
Wojciech Nawrocki
c772dc49ef chore: use leanc for all C code 2021-06-06 15:34:44 +02:00
Wojciech Nawrocki
2ef11669e8 chore: reinstate -x c in leanc 2021-06-06 15:34:44 +02:00
Wojciech Nawrocki
4d7ccc7c72 feat: Lean.js can compile itself 2021-06-06 15:34:44 +02:00
Sebastian Ullrich
a852b64bcd chore: leanc: do not pass linking flags when not linking
Which suppresses a warning that may or may not have defeated ccache...?
2021-01-30 18:49:09 +01:00
Sebastian Ullrich
5fea8fcba3 fix: statically link GMP into leanpkg if STATIC=ON 2021-01-25 15:24:16 +01:00
Sebastian Ullrich
db2613cead fix: leanc should not depend on ccache or cmake g++
use e.g. `LEAN_CXX=ccache clang++` to re-enable
2021-01-09 23:02:48 +01:00
Sebastian Ullrich
fe03e70a8a fix: robust linking of cyclically dependent libraries 2020-11-13 21:08:46 +01:00
Leonardo de Moura
b6f6e44f7c fix: build
@Kha It is not clear why this change fixed the build on my
Linux (running on VirtualBox). The issue seems to be due
circular dependencies between the static libraries, and the order the
static libraries are processed. Note that the build worked on my OSX
without this change.
2020-06-25 15:30:11 -07:00
Sebastian Ullrich
46065a9b3b feat: leanmake: auto-detect PKG 2020-06-13 15:22:01 +02:00
Leonardo de Moura
49fc82c604 chore: add Lean package to leanc.in 2020-05-26 13:51:06 -07:00
Leonardo de Moura
ae3a433f9c chore: add Std to CMakeLists.txt
@Kha did I miss anything?
2020-05-22 11:19:14 -07:00
Sebastian Ullrich
573a128096 feat: leanmake: print out compile flags in analogy to pkg-config/llvm-config 2020-05-22 09:22:26 -07:00
Sebastian Ullrich
38a3c36134 feat: make leanmake extensible with custom Makefiles; rename standard Makefile to lean.mk; document 2020-05-22 09:22:26 -07:00
Sebastian Ullrich
9fdcf6ea59 refactor: put all includes in include/lean/ 2020-05-18 11:00:26 -07:00
Sebastian Ullrich
a6fbf3c20e refactor: make stages internally consistent by compiling the stageN lib with the stageN compiler, rename static libraries
The old stage1 is now stage0.5, which at least suggests that it's not an entirely consistent stage in general
2020-05-14 23:13:51 +02:00
Sebastian Ullrich
afd7e5fa6e feat: introduce simple leanmake wrapper 2020-05-14 14:47:54 +02:00
Sebastian Ullrich
10253e89ea chore: move bin/ and .oleans into build directory 2020-05-14 14:47:54 +02:00