kit

kit
git clone https://git.ryansepassi.com/git/kit.git
Log | Files | Refs | README

commit ab3b7e641d72f9d11e6be706098f0e12abd26967
parent 42c5ca3a53352e4fd3148c52257cb3a02a911be2
Author: Ryan Sepassi <rsepassi@gmail.com>
Date:   Wed, 27 May 2026 11:38:52 -0700

test/toy: rename opt-level env var to CFREE_OPT_LEVELS, default O0+O1

CFREE_TOY_OPT_LEVELS was toy-specific; CFREE_OPT_LEVELS is the name used
by opt_bench.sh and is more consistent across tooling.  Drop O2 from the
default to keep test-toy fast in the common case (full sweep still
available by setting the env var).

Diffstat:
Mtest/toy/run.sh | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/test/toy/run.sh b/test/toy/run.sh @@ -33,7 +33,7 @@ # X is opt-in cross-arch cc+ld+exec for aa64, x64, and rv64. # C and W run only at O0 even when included with other opt levels. # Default paths are "RLCW"; override with CFREE_TEST_PATHS. -# CFREE_TOY_OPT_LEVELS selects optimization levels, default "0 1 2". +# CFREE_OPT_LEVELS selects optimization levels. set -u @@ -50,7 +50,7 @@ case "$PATHS" in *X*) RUN_X=1;; *) RUN_X=0;; esac case "$PATHS" in *C*) RUN_C=1;; *) RUN_C=0;; esac case "$PATHS" in *W*) RUN_W=1;; *) RUN_W=0;; esac TOY_CROSS_ARCHS="${CFREE_TOY_CROSS_ARCHS:-aa64 x64 rv64}" -TOY_OPT_LEVELS="${CFREE_TOY_OPT_LEVELS:-0 1 2}" +TOY_OPT_LEVELS="${CFREE_OPT_LEVELS:-0 1}" HOST_CC="${CC:-cc}" mkdir -p "$BUILD_DIR"