Make irGen.output_base use full path rather than relative

This commit is contained in:
gingerBill
2018-03-03 10:23:27 +00:00
parent 40542e6e26
commit 63ab8b2418
2 changed files with 12 additions and 1 deletions

View File

@@ -692,3 +692,12 @@ wchar_t **command_line_to_wargv(wchar_t *cmd_line, int *_argc) {
}
#endif
String path_to_full_path(gbAllocator a, String path) {
gbAllocator ha = heap_allocator();
char *path_c = gb_alloc_str_len(ha, cast(char *)path.text, path.len);
defer (gb_free(ha, path_c));
char *fullpath = gb_path_get_full_name(a, path_c);
return make_string_c(fullpath);
}