Commit graph

144 commits

Author SHA1 Message Date
Sebastian Ullrich
3da76efa10 chore: Nix: remove Leanpkg from default deps 2021-12-25 17:00:20 +01:00
Anders Christiansen Sørby
cfe924e53e
feat: Nix: add nativeSharedLibs option
* feat: Add nativeSharedLibs option

Use LD_PRELOAD with staticLibDeps

Add a verbose flag when debug is true

Use shared libs instead

feat: Add recursive nativeSharedLibs

Repair printPaths

Remove -v flag from lean call

feat: Use new load-dynlib option

Remove LD_PRELOAD

fix: Add allNativeSharedLibs to allLinkFlags

Trying to fix native linking

feat: Automatic link flags of nativeSharedLibs

fix: Add gmp to sharedLib buildInputs

* fix: Wrap executable files in a linker group

This is a bit slower but ensures that cycles or bad ordering of the
static lib dependencies is resolved.

* Convert allExternalDeps to a list

Breaking change if you depend on allExternalDeps being a attrset
2021-11-28 17:56:01 +01:00
Sebastian Ullrich
d2a1e20dd0 feat: bundling LLVM on Linux 2021-11-18 09:42:35 +01:00
Sebastian Ullrich
7a91c494b9 chore: submodule hints 2021-10-15 06:56:02 -07:00
Sebastian Ullrich
765ed37409 feat: server: support Lake 2021-10-15 06:56:02 -07:00
Sebastian Ullrich
89f9045646 test: add lake tests 2021-10-15 06:56:02 -07:00
Sebastian Ullrich
0a43a9c466 refactor: use JSON to communicate between server & package manager 2021-10-08 11:28:04 +02:00
Sebastian Ullrich
c2194c2bc1 chore: update to LLVM 13 2021-10-06 14:34:29 +02:00
Sebastian Ullrich
f9ab429f75 fix: Nix build 2021-09-30 10:24:45 +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
f49d05bd76 chore: Nix: remove Leanpkg from stage 0 2021-09-22 16:03:57 +02:00
Sebastian Ullrich
d3eb5deeea chore: Nix: fix macOS build 2021-09-22 16:00:13 +02:00
Sebastian Ullrich
5a4309e599 refactor: bootstrap.nix 2021-09-22 14:43:32 +02:00
Sebastian Ullrich
d65871241d chore: replace sed with perl in test driver
Consistent across all three platforms
2021-09-16 21:33:56 +02:00
Sebastian Ullrich
b3bb2bac97 chore: move all C++ code into libleanshared, use C stub for main
Avoids any issues with cross-lib C++
2021-09-16 07:03:37 -07:00
Sebastian Ullrich
af78071000 chore: use -Bsymbolic in favor of -Bsymbolic-functions, which Zig doesn't like 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
2418acd216 chore: Nix: fix stage0 2021-08-20 09:42:05 -07: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
aa177dacc3 chore: Nix: fix macOS linker flags 2021-08-18 13:54:52 +02:00
Sebastian Ullrich
88f3de7a44 chore: link leanshared using leanc after all 2021-08-18 13:54:52 +02:00
Sebastian Ullrich
ef64ea2e62 chore: Nix: use leanshared as well 2021-08-18 13:54:52 +02:00
Sebastian Ullrich
917eb4d081 chore: collect stdlib compilation flags in new header 2021-08-12 07:51:50 -07:00
Sebastian Ullrich
c591a68aab chore: Nix: add back overrideCC that got lost on the way 2021-08-11 10:49:46 +02:00
Sebastian Ullrich
090786f07c chore: Nix: fix doc sources 2021-08-06 17:12:27 +02:00
Sebastian Ullrich
e79d52d2ce chore: Nix: reduce doc/doc-test sources 2021-08-06 16:58:44 +02:00
Sebastian Ullrich
81400109f3 chore: Nix: go back to LLVM 11 on macOS 2021-08-06 09:38:14 +02:00
Sebastian Ullrich
d52908d3b7 chore: LLVM: 10 -> 12 2021-08-05 15:50:03 +02:00
Sebastian Ullrich
c78bbc6c9c chore: Nix: update inputs 2021-08-05 15:50:03 +02:00
Sebastian Ullrich
0db80c6ea8 chore: Nix: link with gold instead of lld
https://twitter.com/derKha/status/1419645259894640645
2021-08-02 13:42:11 +02:00
Sebastian Ullrich
60e6130ece chore: Nix: expose benchmarks as flake attributes for convenience 2021-07-24 16:36:05 +02:00
Sebastian Ullrich
b5d8bc1b8f chore: Nix: pin LEAN_CXX for manual leanc calls 2021-07-13 15:03:03 +02:00
Sebastian Ullrich
02c49b6a1a chore: Nix: do not require package to be buildable for vscode-lean4 version check 2021-07-07 10:46:55 +02:00
Sebastian Ullrich
b48831cda7 fix: Nix: put wrapped leanc in #lean-all 2021-06-23 23:30:42 +02:00
Sebastian Ullrich
efa9369097 chore: restore prefer_native flag 2021-06-21 10:17:26 -07:00
Sebastian Ullrich
da4c46370d feat: store elaborator declaration name in info tree 2021-06-21 10:17:26 -07:00
Sebastian Ullrich
7ebe80ad2a chore: update Nix, Nixpkgs, vscode-lean4 2021-06-06 15:00:40 +02:00
Sebastian Ullrich
744423f25a fix: leanpkg: make flags; extend test 2021-05-30 17:29:54 +02:00
Sebastian Ullrich
fdad29770b chore: Nix: expose vscode & extension without lean-dev wrapper 2021-05-28 15:31:20 +02:00
Sebastian Ullrich
b8be3664b1 chore: Nix: fix leanpkg wrapper error message 2021-05-26 20:37:43 +02:00
Sebastian Ullrich
02e917793e chore: Nix: default lean-dev to Lean w/ package
Restores `lean4-diff-test-file` and similar functionality
2021-05-25 15:24:54 +02:00
Sebastian Ullrich
41cf306788 chore: Nix: cleanup 2021-05-21 17:17:54 +02:00
Sebastian Ullrich
429a450a1b chore: Nix: minimize closure size of .#lean 2021-05-21 14:54:35 +02:00
Sebastian Ullrich
a4de54eaf0 feat: Nix: customizable linking flags 2021-05-20 14:08:15 +02:00
Sebastian Ullrich
ae9b2131c1 chore: reset prefer_native 2021-04-29 13:37:41 +02:00
Sebastian Ullrich
73cf3533a1 fix: count quotation depth in parser correctly 2021-04-29 13:33:48 +02:00
Sebastian Ullrich
9e7917caf0 chore: Nix: work around https://github.com/NixOS/nixpkgs/issues/119779
Fixes #409
2021-04-18 11:18:00 +02:00
Sebastian Ullrich
c7e6c9d89c chore: Nix: allow importing Leanpkg by default 2021-04-08 18:16:19 +02:00
Sebastian Ullrich
898222686c chore: Nix: update vscode-lean4 2021-04-08 09:51:01 +02:00