This repository was archived by the owner on Aug 13, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +21
-11
lines changed
Expand file tree Collapse file tree 4 files changed +21
-11
lines changed Original file line number Diff line number Diff line change 1313
1414load ("@bazel_skylib//:bzl_library.bzl" , "bzl_library" )
1515load ("@bazel_skylib//rules:common_settings.bzl" , "bool_flag" )
16- load ("@io_bazel_stardoc//stardoc:stardoc.bzl" , "stardoc" )
1716load ("@bazel_tools//tools/build_defs/license:license.bzl" , "license" )
17+ load ("@io_bazel_stardoc//stardoc:stardoc.bzl" , "stardoc" )
1818
1919package (default_applicable_licenses = ["//:license" ])
2020
Original file line number Diff line number Diff line change @@ -11,18 +11,28 @@ case $SAR_ARGV0 in
1111 * ) sbcl_subdir=k8
1212esac
1313sbcl=$RUNFILES /google3/third_party/lisp/sbcl/binary-distribution/$sbcl_subdir /bin/sbcl
14- args=(--noinform --dynamic-space-size 512MB )
14+ args=(--noinform --dynamic-space-size 1GB )
1515mode=' (setq *evaluator-mode* :compile)'
1616script=$RUNFILES /google3/third_party/lisp/sbcl/src/tools-for-build/elftool
1717
1818action=$1
1919input=$2
2020output=$3
2121
22+ compactcore=/tmp/compact-$$ .core
23+ tmpcore=/tmp/patched-$$ .core
24+ DSS=16384
25+
2226case $action in
2327 split)
24- exec $sbcl ${args[@]} --eval " $mode " --load $script --eval \
25- ' (sb-editcore:split-core "' $input ' " "' $output ' ")' --quit ;;
28+ exec $sbcl ${args[@]} --eval " $mode " --load $script \
29+ --eval ' (sb-editcore:reorganize-core "' $input ' " "' $compactcore ' ")' \
30+ --eval ' (sb-editcore:move-dynamic-code-to-text-space "' $compactcore ' " "' $tmpcore ' ")' \
31+ --eval ' (delete-file "' $compactcore ' ")' \
32+ --eval ' (sb-editcore:redirect-text-space-calls "' $tmpcore ' ")' \
33+ --eval ' (sb-editcore:split-core "' $tmpcore ' " "' $output ' " :dynamic-space-size ' $DSS ' )' \
34+ --eval ' (delete-file "' $tmpcore ' ")' --quit ;;
35+
2636 copy)
2737 exec $sbcl ${args[@]} --eval " $mode " --load $script --eval \
2838 ' (sb-editcore::copy-to-elf-obj "' $input ' " "' $output ' ")' --quit ;;
Original file line number Diff line number Diff line change 11load ("@bazel_skylib//:bzl_library.bzl" , "bzl_library" )
2+ load (
3+ "//:rules.bzl" ,
4+ "lisp_binary" ,
5+ "lisp_library" ,
6+ "lisp_test" ,
7+ )
28load (
39 ":tests.bzl" ,
410 "DYNSPACE" ,
1218 "lisp_instrumented_files_info_test" ,
1319 "lisp_providers_test" ,
1420)
15- load (
16- "//:rules.bzl" ,
17- "lisp_binary" ,
18- "lisp_library" ,
19- "lisp_test" ,
20- )
2121
2222package (default_applicable_licenses = ["//:license" ])
2323
Original file line number Diff line number Diff line change @@ -12,8 +12,8 @@ The three rules defined here are:
1212 lisp_test - Outputs a binary that is run with the test command
1313"""
1414
15- load ("@rules_cc//cc:find_cc_toolchain.bzl" , "find_cc_toolchain" , "use_cc_toolchain" )
1615load ("@bazel_skylib//rules:common_settings.bzl" , "BuildSettingInfo" )
16+ load ("@rules_cc//cc:find_cc_toolchain.bzl" , "find_cc_toolchain" , "use_cc_toolchain" )
1717load (
1818 ":provider.bzl" ,
1919 "LispInfo" ,
You can’t perform that action at this time.
0 commit comments