mirror of
https://github.com/odin-lang/Odin.git
synced 2026-04-18 20:40:28 +00:00
Fixed '_alloc_command_line_arguments()' in os_linux.odin to use the new cstrings, and made 'odin run' use the full executable path.
This commit is contained in:
@@ -271,7 +271,7 @@ dlerror :: proc() -> string {
|
||||
_alloc_command_line_arguments :: proc() -> []string {
|
||||
args := make([]string, __argc__);
|
||||
for i in 0..__argc__ {
|
||||
args[i] = string((__argv__+i)^);
|
||||
args[i] = string(cstring((__argv__+i)^));
|
||||
}
|
||||
return args;
|
||||
}
|
||||
|
||||
@@ -983,7 +983,7 @@ int main(int arg_count, char **arg_ptr) {
|
||||
remove_temp_files(output_base);
|
||||
|
||||
if (run_output) {
|
||||
system_exec_command_line_app("odin run", false, "%.*s", LIT(output_base));
|
||||
system_exec_command_line_app("odin run", false, "%s/%.*s", cwd, LIT(output_base));
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user