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]}
}
}
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.
script