Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

export

This field contains an optional list of variables to export to the rule’s build environment.

Each entry can be either a bare variable name or a key-value map. A bare variable name exports the corresponding laze variable’s value. A key-value map exports the given value under the given name.

Example:

    rules:
      - name: CC
        cmd: "${CC} -c ${in} -o ${out}"
        export:
          - CFLAGS
          - CC_VERSION: 12
        # ... other fields ...