Commit graph

26423 commits

Author SHA1 Message Date
Sebastian Ullrich
dd146d50cf fix: extra linker flags (e.g. -ldl) must come after stdlib linker flags 2021-11-23 13:07:05 +01:00
Sebastian Ullrich
12306ba401 fix: -lgmp should come last 2021-11-23 13:07:05 +01:00
Sebastian Ullrich
226121433f fix: semantic highlighting of projection notation elaborated twice 2021-11-23 13:01:51 +01:00
Varun Gandhi
9ae6380b43 fix: only check for ccache if variables aren't passed explicitly
The existing CMake will emit a spurious warning when someone
tries to explicitly pass CMAKE_C(XX)_COMPILER_LAUNCHER, such
as when they point it to sccache instead of ccache.
2021-11-23 09:15:42 +01:00
Scott Morrison
43315f7f94
fix: correct spacing in the pretty printer 2021-11-23 09:13:31 +01:00
Leonardo de Moura
d9b057af03 fix: fixes #793 2021-11-22 13:28:08 -08:00
Gabriel Ebner
f55649f81b fix: prefer simp lemmas with *higher* priority 2021-11-22 11:52:45 -08:00
ammkrn
80c04c562a doc: add/edit macro guide
Incorporate review changes to the doc book suggested by Kha.
2021-11-22 11:02:07 +01:00
ammkrn
7539799976 doc: add macro guide, light reorganizing
Sebastian suggested moving the macro guide from Mathlib4 upstream into the Lean 4 manual (called `macro_overview.md` here). There was some discussion about where to put it; the section on metaprogramming seemed like the most appropriate place. I did a little bit of reorganizing to make some items more discoverable (e.g. the user-defined notation section).
2021-11-22 11:02:07 +01:00
larsk21
9028405798 fix: handle _root_ in unresolveNameGlobal with pp.fullNames 2021-11-21 15:23:21 +01:00
larsk21
8cf520209f feat: show fully-qualified name in hover text 2021-11-21 15:23:21 +01:00
larsk21
63f9b37c0a fix: return fully-qualified name in PrettyPrinter when pp.fullNames is set 2021-11-21 15:23:21 +01:00
Sebastian Ullrich
ad10495afa chore: macOS: build with system c++ 2021-11-20 11:04:39 +01:00
Sebastian Ullrich
cbbc6ef709 chore: CI: bump install-nix-action 2021-11-20 11:04:39 +01:00
Sebastian Ullrich
c6c56b15e1 feat: findSysroot? & reworked initSearchPath 2021-11-20 11:04:39 +01:00
Sebastian Ullrich
6e9574045a feat: expose C & linker flags as API 2021-11-20 11:04:39 +01:00
Sebastian Ullrich
d4683e0169 chore: clean up LEAN_EXTRA_FLAGS 2021-11-20 11:04:39 +01:00
Sebastian Ullrich
babcd3563d chore: CI: fix nightly release, compress non-release more 2021-11-19 13:05:14 +01:00
Sebastian Ullrich
dbdb92a411 doc: advise using Developer Mode on Windows 2021-11-19 10:09:26 +01:00
Sebastian Ullrich
44f9edff87 feat: resolve symlinks in LEAN_SRC_PATH 2021-11-19 10:09:26 +01:00
Sebastian Ullrich
c5b6968c86 chore: symlink to source from build dir 2021-11-19 10:09:26 +01:00
Gabriel Ebner
6475e3d5cc fix: add missing LEAN_EXPORT 2021-11-18 11:14:26 +01:00
Sebastian Ullrich
7333de1766 refactor: cmake: make more use of string(APPEND)
I guess CMake might not actually be that painful if one was motivated to
learn it

```
sed -Ei 's/set\(([A-Z_]+) "\$\{\1\}/string(APPEND \1 "/' src/**/CMakeLists.txt
```
2021-11-18 10:09:55 +01:00
Sebastian Ullrich
e629fb70d5 chore: CI: squelch harmless Nix error message
Fixes #802
2021-11-18 10:02:34 +01:00
Sebastian Ullrich
fee052ceb9 chore: add GMP license for now 2021-11-18 09:42:35 +01:00
Sebastian Ullrich
99aee53172 fix: restore macOS compile flags 2021-11-18 09:42:35 +01:00
Sebastian Ullrich
77ccd92963 chore: remove redundant cmake install directive 2021-11-18 09:42:35 +01:00
Sebastian Ullrich
abef59ddbb chore: remove LICENSE header that confused GitHub 2021-11-18 09:42:35 +01:00
Sebastian Ullrich
74a616a965 chore: final cleanup? 2021-11-18 09:42:35 +01:00
Sebastian Ullrich
6cda043e5b chore: add missing LICENSES 2021-11-18 09:42:35 +01:00
Sebastian Ullrich
60095ce13f chore: CI: even shorter install tree listing 2021-11-18 09:42:35 +01:00
Sebastian Ullrich
767e9cffda chore: CI: check test binary as well 2021-11-18 09:42:35 +01:00
Sebastian Ullrich
ad2fe8de80 feat: bundle LLVM on macOS 2021-11-18 09:42:35 +01:00
Sebastian Ullrich
db5b150b38 chore: do not use bundled compiler for foreign test 2021-11-18 09:42:35 +01:00
Sebastian Ullrich
3db3fb1429 feat: bundle LLVM on Windows 2021-11-18 09:42:35 +01:00
Sebastian Ullrich
0a40269fcb fix: build with mingw-clang64 clang 2021-11-18 09:42:35 +01:00
Sebastian Ullrich
337c3715dc chore: ci: fix List Install Tree 2021-11-18 09:42:35 +01:00
Sebastian Ullrich
09d549aecd chore: fix foreign test on macOS, again 2021-11-18 09:42:35 +01:00
Sebastian Ullrich
6ca944f453 chore: avoid C++ warning 2021-11-18 09:42:35 +01:00
Sebastian Ullrich
ac5afd6b71 chore: fix leanc.sh -v 2021-11-18 09:42:35 +01:00
Sebastian Ullrich
749158c8c1 perf: strip LLVM binaries 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
42ee91bcda fix: Linux: bundle zlib 2021-11-18 09:42:35 +01:00
Sebastian Ullrich
acf7903691 feat: upload .tar.zst and .zip for every platform
Also, do so only for releases since `zstd -19` takes a while.
Also, stop double-wrapping artifacts
2021-11-18 09:42:35 +01:00
Sebastian Ullrich
75a0b43aed feat: reimplement assert without system headers 2021-11-18 09:42:35 +01:00
Sebastian Ullrich
bfe7583356 chore: install license 2021-11-18 09:42:35 +01:00
Sebastian Ullrich
8f4e59d9b5 chore: update lean-llvm 2021-11-18 09:42:35 +01:00
Sebastian Ullrich
c3f7f09aad fix: use old nixpkgs for glibc only 2021-11-18 09:42:35 +01:00
Sebastian Ullrich
6ef56efb79 fix: leanc: drop empty arguments 2021-11-18 09:42:35 +01:00
Sebastian Ullrich
d5d8ada8b8 chore: split LICENSE again 2021-11-18 09:42:35 +01:00