commit 3284265b74d2fdead8d91bd12a08c7f40aa10205
parent b777ea65cd5dbcdc211bbccb2b5aed7b15658a0d
Author: Joris Vink <joris@coders.se>
Date: Wed, 27 Jan 2016 21:37:59 +0100
Remove the -v stuff and always show cflags and ldflags.
Diffstat:
1 file changed, 2 insertions(+), 8 deletions(-)
diff --git a/src/cli.c b/src/cli.c
@@ -232,7 +232,6 @@ static const char *dh2048_data =
static const char *gitignore = "*.o\n.flavor\n.objs\n%s.so\nassets.h\ncert\n";
static int s_fd = -1;
-static int verbose = 0;
static char *appl = NULL;
static char *rootdir = NULL;
static char *compiler = "gcc";
@@ -386,9 +385,6 @@ cli_build(int argc, char **argv)
char *assets_path, *p, *obj_path, *cpath;
char pwd[PATH_MAX], *src_path, *assets_header;
- if (argc == 1 && !strcmp(argv[0], "-v"))
- verbose = 1;
-
if (getcwd(pwd, sizeof(pwd)) == NULL)
cli_fatal("could not get cwd: %s", errno_s);
@@ -1233,8 +1229,7 @@ cli_build_cflags(struct buildopt *bopt)
}
string = kore_buf_stringify(bopt->cflags);
- if (verbose)
- printf("CFLAGS=%s\n", string);
+ printf("CFLAGS=%s\n", string);
cflags_count = kore_split_string(string, " ", cflags, CFLAGS_MAX);
}
@@ -1263,8 +1258,7 @@ cli_build_ldflags(struct buildopt *bopt)
}
string = kore_buf_stringify(bopt->ldflags);
- if (verbose)
- printf("LDFLAGS=%s\n", string);
+ printf("LDFLAGS=%s\n", string);
ldflags_count = kore_split_string(string, " ", ldflags, LD_FLAGS_MAX);
}