This commit is contained in:
Nishi 2026-05-08 05:25:34 +09:00
commit ece62938a9
Signed by: nishi
GPG key ID: 27EF69B208EB9343
7 changed files with 36 additions and 7 deletions

0
src/action/gmake.js Normal file
View file

7
src/config.h generated
View file

@ -5,4 +5,11 @@
X(watcom) \
X(gcc) \
#define ACTIONS \
X(gmake) \
#define JS \
COMPILERS \
ACTIONS
#endif

View file

@ -9,5 +9,11 @@ for(var i = 1; i < ARGV.length; i++){
console.log("");
console.log("Usage: " + ARGV[0] + " [options] action [arguments]");
process.exit(0);
}else if(ARGV[i].startsWith("--")){
console.log("Error: invalid option '" + ARGV[i].substr(2) + "'");
process.exit(1);
}else{
console.log("Error: no such action '" + ARGV[i] + "'");
process.exit(1);
}
}

View file

@ -15,7 +15,7 @@
extern unsigned int name ## _len;
#define X(name) LOAD(compiler_ ## name)
COMPILERS;
JS;
#undef X
/* js.c */