~bl4ckb0ne/boson

03c91b13c4311325d9af8876a37376fd19902232 — Simon Zeni 2 years ago 3219597
setup: lowercase BOSON_STAGE env var value
1 files changed, 3 insertions(+), 3 deletions(-)

M src/setup.c
M src/setup.c => src/setup.c +3 -3
@@ 28,11 28,11 @@ get_stage(void)
	const char *s = getenv("BOSON_STAGE");
	if (!s) {
		return STAGE_EMIT;
	} else if (strcmp(s, "EVAL") == 0) {
	} else if (strcmp(s, "eval") == 0) {
		return STAGE_EVAL;
	} else if (strcmp(s, "PARSE") == 0) {
	} else if (strcmp(s, "parse") == 0) {
		return STAGE_PARSE;
	} else if (strcmp(s, "LEX") == 0) {
	} else if (strcmp(s, "lex") == 0) {
		return STAGE_LEX;
	} else {
		fatal("unknown BOSON_STAGE value '%s'", s);