diff options
author | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2016-12-27 04:18:39 +0100 |
---|---|---|
committer | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2016-12-27 04:18:39 +0100 |
commit | a913539c26ec3f34bbdf9474b77d528451b2042a (patch) | |
tree | 049183e370fd6cd179d09cddeb661f357ff89348 /src/blogc-make/exec.c | |
parent | 879e295de04bc0699462c959a1d331dcf5446345 (diff) | |
download | blogc-a913539c26ec3f34bbdf9474b77d528451b2042a.tar.gz blogc-a913539c26ec3f34bbdf9474b77d528451b2042a.tar.bz2 blogc-a913539c26ec3f34bbdf9474b77d528451b2042a.zip |
github-lambda: blogc-make: integrate
Diffstat (limited to 'src/blogc-make/exec.c')
-rw-r--r-- | src/blogc-make/exec.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/blogc-make/exec.c b/src/blogc-make/exec.c index 75b7c00..8b961e7 100644 --- a/src/blogc-make/exec.c +++ b/src/blogc-make/exec.c @@ -183,7 +183,14 @@ bm_exec_build_blogc_cmd(bm_settings_t *settings, bc_trie_t *variables, free(tmp); } - bc_string_append(rv, "blogc"); + // use blogc binary from environment, if provided + const char *blogc_bin = getenv("BLOGC"); + if (blogc_bin != NULL) { + bc_string_append(rv, blogc_bin); + } + else { + bc_string_append(rv, "blogc"); + } if (settings != NULL) { bc_trie_foreach(settings->env, |