changeset 696: |
38e9c3be2392 |
parent: |
5f88b237ce29
|
child: |
08621be7e780 |
author: |
Richard Westhaver <ellis@rwest.io> |
date: |
Fri, 04 Oct 2024 21:11:52 -0400 |
permissions: |
-rwxr-xr-x |
description: |
prep for adding zdict wrapper, change default control stack size of inferior-lisp to 8M |
1 ;;; skelfile --- CC/core skelfile -*- mode: skel; -*- 3 :author ("Richard Westhaver" . "ellis@rwest.io") 8 :description "The Compiler Company Core" 9 :tags ("core" "lisp" "rust" "emacs" "c") 10 :include ("lisp/lisp.sk" "rust/rust.sk" "emacs/emacs.sk") 11 :vc (:hg "https://vc.compiler.company/core") 12 :bind ((stash ".stash") 14 (emacs-locals :dir-locals 15 (nil . ((indent-tabs-mode . nil))) 16 (rust-mode . ((eglot-workspace-configuration 17 . (:rust-analyzer (:cargo (:buildScripts (:enable t) (:features "all"))))))) 18 (nushell-mode . ((nushell-indent-offset . 2))) 19 (nushell-ts-mode . ((nushell-indent-offset . 2))) 20 (sh-mode . (sh-indentation . 2)) 21 (makefile-mode . ((indent-tabs-mode . t))) 22 (slint-mode . ((slint-indent-level . 2))))) 23 :components ((:org "readme") 29 psl.dat parquet.json rgb.txt 30 save-std save-prelude save-user 31 save-infra save-core save-tests 32 build-tree-sitter-alien build-core fasls 33 ;; build-skel build-organ build-homer build-packy build-rdb 38 #$find emacs -name '*.elc' -type f -delete$# 39 #$find lisp -name '*.fasl' -type f -delete$# 40 #$echo 'cargo clean:' && cd rust && cargo clean$#) 42 (:build () #$cd lisp/ffi/tree-sitter && 43 clang -g -O2 -Wall -Wno-unused-value -ltree-sitter -shared \ 44 alien.c -o ../../../.stash/libtree-sitter-alien.so$#) 45 (:install () #$cp .stash/libtree-sitter-alien.so /usr/local/lib/$#)) 47 (download "https://publicsuffix.org/list/public_suffix_list.dat" 48 :output (merge-pathnames 51 :if-exists :supersede)) 53 (download "https://packy.compiler.company/data/rgb.txt" 54 :output (merge-pathnames 57 :if-exists :supersede)) 59 (color::parse-x11-color-definitions 60 :input ".stash/rgb.txt" 61 :output (merge-pathnames "color/x11.lisp" *skel-path*))) 62 (parquet.thrift (%stash) 64 "https://raw.githubusercontent.com/apache/parquet-format/master/src/main/thrift/parquet.thrift" 65 :output (merge-pathnames ".stash/parquet.thrift" *skel-path*) 66 :if-exists :supersede) 67 #$thrift --gen json -out .stash .stash/parquet.thrift$#) 68 (parquet.json (%stash) 69 (download "https://packy.compiler.company/data/parquet.json" 70 :output (merge-pathnames ".stash/parquet.json" *skel-path*) 71 :if-exists :supersede)) 72 (freedesktop.org.xml (%stash) 73 (download "https://packy.compiler.company/data/freedesktop.org.xml" 74 :output (merge-pathnames ".stash/freedesktop.org.xml" *skel-path*))) 75 (parquet-test-data (%stash) (download "https://packy.compiler.company/data/test/alltypes_plain.parquet" 76 :output (merge-pathnames ".stash/alltypes_plain.parquet" *skel-path*) 77 :if-exists :supersede)) 79 (%stash () #$mkdir -pv .stash$#) 82 (with-sbcl (:noinform t :quit t) 83 (ql:quickload :bin/rdb) 85 #$mv lisp/bin/rdb .stash/rdb$#) 86 (:install () #$install -C -m 755 .stash/rdb /usr/local/bin/rdb$#)) 89 (with-sbcl (:noinform t :quit t) 90 (ql:quickload :bin/skel) 91 (asdf:make :bin/skel)) 92 #$mv lisp/bin/skel .stash/skel$#) 94 (with-sbcl (:noinform t :quit t) 95 (push :tools *features*) 96 (ql:quickload :bin/skel) 97 (asdf:make :bin/skel)) 98 #$mv lisp/bin/skel .stash/skel$#) 99 (:install () #$install -C -m 755 .stash/skel /usr/local/bin/skel$#)) 102 (with-sbcl (:noinform t :quit t) 103 (ql:quickload :bin/skc) 104 (asdf:make :bin/skc)) 105 #$mv lisp/bin/skc .stash/skc$#)) 107 (:build () (with-sbcl (:noinform t :quit t) 108 (ql:quickload :bin/organ) 109 (asdf:make :bin/organ)) 110 #$mv lisp/bin/organ .stash/organ$#)) 112 (:build () (with-sbcl (:noinform t :quit t) 113 (ql:quickload :bin/homer) 114 (asdf:make :bin/homer)) 115 #$mv lisp/bin/homer .stash/homer$#)) 117 (:build () (with-sbcl (:noinform t :quit t) 118 (ql:quickload :bin/packy) 119 (asdf:make :bin/packy)) 120 #$mv lisp/bin/packy .stash/packy$#)) 121 (std () (:save () (with-sbcl (:noinform t :quit t) 123 (in-package :std-user) 124 (compile-lisp :std :save ".stash/std.core")))) 126 (:save () (with-sbcl (:noinform t :quit t) 127 (ql:quickload :prelude) 128 (in-package :std-user) 129 (compile-lisp :prelude :save ".stash/prelude.core"))) 130 (:compile () (compile-lisp :prelude :force t :verbose t))) 132 (:save () (with-sbcl (:noinform t :quit t) 135 (compile-lisp :user :save ".stash/user.core"))) 136 (:compile () (compile-lisp :user :force t :verbose t))) 137 (infra () (:save () (with-sbcl (:noinform t :quit t) 140 (compile-lisp :user :save ".stash/infra.core" :compression 22)))) 142 (:build () (with-sbcl (:noinform t :quit t) 143 (ql:quickload :bin/core) 144 (asdf:make :bin/core)) 145 #$mv lisp/bin/core .stash/core$#) 146 (:save () (with-sbcl (:noinform t :quit t) 147 (ql:quickload (list :std :core)) 148 (in-package :std-user) 149 (compile-lisp :core :save ".stash/core.core"))) 150 (:compile () (compile-lisp :core :force t :verbose t)) 151 (:install () #$install -C -m 755 .stash/core /usr/local/bin/core 152 echo "core -> /usr/local/bin/" 153 links="skel homer packy rdb organ" 155 ln -sf /usr/local/bin/core /usr/local/bin/$i 156 echo "$i -> core -> /usr/local/bin/" 159 (:save () (with-sbcl (:noinform t :quit t) 160 (ql:quickload :core/tests) 161 (in-package :core/tests) 162 (compile-lisp :core/tests :save ".stash/tests.core"))) 164 (compile-lisp :core/tests :force t :verbose t))) 165 (bench () (:compile () (compile-lisp :core/bench :force t :verbose t))) 166 (fasls (compile-core #+nil compile-tests compile-bench compile-user compile-prelude)) 168 (mailman () #$cd rust && cargo build -Z unstable-options --bin mailman --artifact-dir ../.stash/$#) 169 (alik () #$cd rust && cargo build -Z unstable-options --bin alik --artifact-dir ../.stash/$#) 170 (rust-bin (mailman alik)) 171 (alik-ui () #$trunk build --config rust/ui/alik/Trunk.toml$#) 173 (install (install-core) 174 #$d=/usr/local/share/lisp/ 178 for f in $(find . -type f -name "*.core") 179 do echo "$(basename $f) -> $d" 180 install -C -m 755 $f $d 182 (emacs () #$make -C emacs$#) 184 (core-syms.sxp () (with-open-file (f ".stash/symbols.sxp" :direction :output))) 185 (dist () #$mkdir -pv .stash/tmp/core/bin/ .stash/tmp/core/share/lisp/fasl/ .stash/tmp/core/lib/ 187 mv *.core tmp/core/share/lisp/ 188 mv *.fasl tmp/core/share/lisp/fasl/ 189 mv *.so tmp/core/lib/ 190 mv $(find -maxdepth 1 -type f ! -name "*.*") tmp/core/bin/ 191 cd tmp && tar -I 'zstd' -cf core.tar.zst core/* && mv core.tar.zst ../$#) 192 (dist-clean (clean) #$cd .. && tar -I 'zstd' -cf core/core-source.tar.zst core/* && cd core 194 mv core-source.tar.zst .stash/$#))