diff options
| author | gingerBill <bill@gingerbill.org> | 2018-07-07 08:12:48 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2018-07-07 08:12:48 +0100 |
| commit | 1e01085ef7a921f7e83d63c27d56e18716ab2e68 (patch) | |
| tree | a79fc683bc52fb39bec3bcc3495f69308104df5b /src/main.cpp | |
| parent | 04a1f869b588dcaa738b009cf374493e8eb4a343 (diff) | |
| parent | e04ba7530d7439cb97f4f061f68d4e8149f0735e (diff) | |
Merge branch 'master' of https://github.com/odin-lang/Odin
Diffstat (limited to 'src/main.cpp')
| -rw-r--r-- | src/main.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main.cpp b/src/main.cpp index 9559a3dc6..25ebc9dea 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -992,12 +992,12 @@ int main(int arg_count, char **arg_ptr) { // the system library paths for the library file). if (string_ends_with(lib, str_lit(".a"))) { // static libs, absolute full path relative to the file in which the lib was imported from - lib_str = gb_string_append_fmt(lib_str, " -l:%.*s ", LIT(lib)); + lib_str = gb_string_append_fmt(lib_str, " -l:\"%.*s\" ", LIT(lib)); } else if (string_ends_with(lib, str_lit(".so"))) { // dynamic lib, relative path to executable // NOTE(vassvik): it is the user's responsibility to make sure the shared library files are visible // at runtimeto the executable - lib_str = gb_string_append_fmt(lib_str, " -l:%s/%.*s ", cwd, LIT(lib)); + lib_str = gb_string_append_fmt(lib_str, " -l:\"%s/%.*s\" ", cwd, LIT(lib)); } else { // dynamic or static system lib, just link regularly searching system library paths lib_str = gb_string_append_fmt(lib_str, " -l%.*s ", LIT(lib)); @@ -1085,7 +1085,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\"", LIT(output_base)); } #endif #endif |