kore

Kore is a web application platform for writing scalable, concurrent web based processes in C or Python.
Commits | Files | Refs | README | LICENSE | git clone https://git.kore.io/kore.git

commit 0af7258c302a28276cac067b860bd08f0c64c106
parent d078bdfb95d1b1a18ff83ba713897d05eadb353c
Author: Joris Vink <joris@coders.se>
Date:   Mon,  4 Oct 2021 19:18:15 +0200

Don't include kore config in all builds just yet.

Diffstat:
src/cli.c | 14++++++++------
1 file changed, 8 insertions(+), 6 deletions(-)

diff --git a/src/cli.c b/src/cli.c @@ -679,12 +679,14 @@ cli_build(int argc, char **argv) if (cli_dir_exists(assets_path)) cli_find_files(assets_path, cli_build_asset); - memset(&dp, 0, sizeof(dp)); - dp.d_type = DT_REG; - printf("adding config %s\n", config); - (void)snprintf(dp.d_name, - sizeof(dp.d_name), "builtin_kore.conf"); - cli_build_asset(config, &dp); + if (bopt->single_binary) { + memset(&dp, 0, sizeof(dp)); + dp.d_type = DT_REG; + printf("adding config %s\n", config); + (void)snprintf(dp.d_name, + sizeof(dp.d_name), "builtin_kore.conf"); + cli_build_asset(config, &dp); + } cli_file_writef(s_fd, "\n#endif\n"); cli_file_close(s_fd);