Skip to content

Dynamically Modify the Build #7

Description

@star-hengxing

In a project build process, due to defects in the build system itself or the person writing the build files not handling them, certain execution command parameters do not meet expectations, ultimately leading to build failure. We want to replace these parameters through scripts (lua/js/dsl) rather than by modifying the project build system files.

# error
$ lib /out: xxx
# right
$ lib /out:xxx

script

fn command(argv) {
    if (argv[0] == "lib") {
        argv = {"lib", argv[1] + argv[2]}
    }
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions