# builtins-forms.sh -- the forms of a side module's merged compile, one table # for the two places that need it: sysroot/builtins-object.sh compiles the TU in # each and records in the builtins object's stamp the ones it found the same, # and brintld names a -shared link's form to look it up there. A knob that # changed the form in one place and not the other would send every side module # back to the TU, so neither spells a form itself. # # BUILTINS_SIDE_FORMS the forms the object is checked in # builtins_form_env
that form's knobs, one assignment per line # builtins_form_of # the form those knobs make, in $BUILTINS_FORM BUILTINS_SIDE_FORMS="side side-abi4-lanes" builtins_form_env() { case "$1" in side) printf '%s\n' HWJS_CORO_DRIVE_FLAT=1 ;; side-abi4-lanes) printf '%s\n' HWJS_CORO_DRIVE_FLAT=1 HWJS_STATUS_CHANNEL=1 HWJS_LANE_ADDRESSED=1 ;; *) return 1 ;; esac } builtins_form_of() { BUILTINS_FORM=side [[ "$1" != 1 ]] || BUILTINS_FORM+=-abi4 [[ "$2" != 1 ]] || BUILTINS_FORM+=-lanes [[ "$3" != 0 ]] || BUILTINS_FORM+=-nested }