# Prevent OOM
options=(!debug)

eval "$(
  declare -f build \
  | sed '
    s|-Bbuilds/Release64|-Bbuilds/Release|
    s|cmake|cmake -DCMAKE_C_FLAGS=-m32 -DCMAKE_CSS_FLAGS=-m32|
    s|Release64|Release|g
  '
)"

eval "$(
  declare -f package \
  | sed '
    s|Release64|Release|g
    s|amdvlk64.so|amdvlk32.so|g
    s|amd_icd64.json|amd_icd32.json|
  '
)"