mmake: different cosmocc regime

Now that cosmocc is unpacked into a version-specific directory under
cosmocc/, it makes more sense to put the versions in /opt/cosmocc and
maintain a symlink to the currently active one.
This commit is contained in:
Jōshin 2024-01-06 19:14:13 -05:00
parent 5e7137097d
commit 2e5f662dfe
No known key found for this signature in database

View file

@ -38,7 +38,7 @@ done
whence nproc >/dev/null || autoload -Uz nproc
j=-j$(nproc)
}
local make=${MAKE:-${COSMOCC:-/opt/cosmocc}/bin/make}
local make=${MAKE:-${COSMOCC:-/opt/cosmocc/current}/bin/make}
[[ -x $make ]] || make=${COSMO:-$PWD}/build/bootstrap/make.com
( set -x
exec $make $j $flags MODE=$mode $targs )