summaryrefslogtreecommitdiff
path: root/myrbuild
diff options
context:
space:
mode:
authorOri Bernstein <orib@google.com>2012-10-04 14:51:44 -0400
committerOri Bernstein <orib@google.com>2012-10-04 14:51:44 -0400
commit08b1eacc62abb4f77fd7403c692cdc4b84c7dd76 (patch)
tree1aed5af5acf7ede9dca555a501fda9dd65178610 /myrbuild
parent92d743d5e5eaf030196e52bdcc94b8c1735c1219 (diff)
parent30234b14a10a94f21b6f84559fce135f43cb2e71 (diff)
downloadmc-08b1eacc62abb4f77fd7403c692cdc4b84c7dd76.tar.gz
Merge branch 'master' of git+ssh://git.eigenstate.org/git/ori/mc
Diffstat (limited to 'myrbuild')
-rw-r--r--myrbuild/myrbuild.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/myrbuild/myrbuild.c b/myrbuild/myrbuild.c
index ed9d800..9432fbd 100644
--- a/myrbuild/myrbuild.c
+++ b/myrbuild/myrbuild.c
@@ -162,7 +162,7 @@ void compile(char *file)
char *localdep;
char *deps[512];
char buf[1024];
- char *extra[2] = {"-o", "" /* filename */};
+ char *extra[] = {"-g", "-o", "" /* filename */};
if (hassuffix(file, ".myr")) {
getdeps(file, deps, 512, &ndeps);
@@ -189,8 +189,8 @@ void compile(char *file)
} else if (hassuffix(file, ".s")) {
swapsuffix(buf, sizeof buf, file, ".s", ".o");
if (isfresh(file, buf)) {
- extra[1] = buf;
- gencmd(&cmd, &ncmd, as, file, extra, 2);
+ extra[2] = buf;
+ gencmd(&cmd, &ncmd, as, file, extra, 3);
run(cmd);
}
}