]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - main.c
-dump option, by default the IR is not dumped anymore
[xonotic/gmqcc.git] / main.c
diff --git a/main.c b/main.c
index 06e036d280e64d0c6a6aca45727e5e4e8acbe491..75813d279683dd877349b37a6b66b600d72f6445 100644 (file)
--- a/main.c
+++ b/main.c
@@ -30,6 +30,7 @@ const char *opts_output   = "progs.dat";
 int         opts_standard = COMPILER_GMQCC;
 bool        opts_debug    = false;
 bool        opts_memchk   = false;
+bool        opts_dump     = false;
 
 typedef struct { char *filename; int type; } argitem;
 VECTOR_MAKE(argitem, items);
@@ -179,6 +180,10 @@ static bool options_parse(int argc, char **argv) {
                 opts_debug = true;
                 continue;
             }
+            if (!strcmp(argv[0]+1, "dump")) {
+                opts_dump = true;
+                continue;
+            }
             if (!strcmp(argv[0]+1, "memchk")) {
                 opts_memchk = true;
                 continue;