1
0
mirror of https://github.com/janet-lang/janet synced 2025-10-31 23:53:02 +00:00

Be more complete with JANET_NO_SOURCEMAPS

This actually removed sourcemaps, not just
the top level annotation in bindings.
This commit is contained in:
Calvin Rose
2019-06-20 11:52:43 -04:00
parent cf05ff610f
commit 4b4fe80404
3 changed files with 9 additions and 3 deletions

View File

@@ -63,7 +63,13 @@ int main(int argc, const char **argv) {
janet_def(env, "process/config", janet_wrap_table(opts), "Boot options");
/* Run bootstrap script to generate core image */
status = janet_dobytes(env, janet_gen_boot, janet_gen_boot_size, "boot.janet", NULL);
const char *boot_file;
#ifdef JANET_NO_SOURCEMAPS
boot_file = NULL;
#else
boot_file = "boot.janet";
#endif
status = janet_dobytes(env, janet_gen_boot, janet_gen_boot_size, boot_file, NULL);
/* Deinitialize vm */
janet_deinit();