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