File tree 4 files changed +21
-11
lines changed
4 files changed +21
-11
lines changed Original file line number Diff line number Diff line change 13
13
14
14
load ("@bazel_skylib//:bzl_library.bzl" , "bzl_library" )
15
15
load ("@bazel_skylib//rules:common_settings.bzl" , "bool_flag" )
16
- load ("@io_bazel_stardoc//stardoc:stardoc.bzl" , "stardoc" )
17
16
load ("@bazel_tools//tools/build_defs/license:license.bzl" , "license" )
17
+ load ("@io_bazel_stardoc//stardoc:stardoc.bzl" , "stardoc" )
18
18
19
19
package (default_applicable_licenses = ["//:license" ])
20
20
Original file line number Diff line number Diff line change @@ -11,18 +11,28 @@ case $SAR_ARGV0 in
11
11
* ) sbcl_subdir=k8
12
12
esac
13
13
sbcl=$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 )
15
15
mode=' (setq *evaluator-mode* :compile)'
16
16
script=$RUNFILES /google3/third_party/lisp/sbcl/src/tools-for-build/elftool
17
17
18
18
action=$1
19
19
input=$2
20
20
output=$3
21
21
22
+ compactcore=/tmp/compact-$$ .core
23
+ tmpcore=/tmp/patched-$$ .core
24
+ DSS=16384
25
+
22
26
case $action in
23
27
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
+
26
36
copy)
27
37
exec $sbcl ${args[@]} --eval " $mode " --load $script --eval \
28
38
' (sb-editcore::copy-to-elf-obj "' $input ' " "' $output ' ")' --quit ;;
Original file line number Diff line number Diff line change 1
1
load ("@bazel_skylib//:bzl_library.bzl" , "bzl_library" )
2
+ load (
3
+ "//:rules.bzl" ,
4
+ "lisp_binary" ,
5
+ "lisp_library" ,
6
+ "lisp_test" ,
7
+ )
2
8
load (
3
9
":tests.bzl" ,
4
10
"DYNSPACE" ,
12
18
"lisp_instrumented_files_info_test" ,
13
19
"lisp_providers_test" ,
14
20
)
15
- load (
16
- "//:rules.bzl" ,
17
- "lisp_binary" ,
18
- "lisp_library" ,
19
- "lisp_test" ,
20
- )
21
21
22
22
package (default_applicable_licenses = ["//:license" ])
23
23
Original file line number Diff line number Diff line change @@ -12,8 +12,8 @@ The three rules defined here are:
12
12
lisp_test - Outputs a binary that is run with the test command
13
13
"""
14
14
15
- load ("@rules_cc//cc:find_cc_toolchain.bzl" , "find_cc_toolchain" , "use_cc_toolchain" )
16
15
load ("@bazel_skylib//rules:common_settings.bzl" , "BuildSettingInfo" )
16
+ load ("@rules_cc//cc:find_cc_toolchain.bzl" , "find_cc_toolchain" , "use_cc_toolchain" )
17
17
load (
18
18
":provider.bzl" ,
19
19
"LispInfo" ,
You can’t perform that action at this time.
0 commit comments