Browse Source

quote the dsymutil argument

Fixes #4417
Laytan Laats 10 months ago
parent
commit
bcf2b93c6e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/linker.cpp

+ 1 - 1
src/linker.cpp

@@ -684,7 +684,7 @@ gb_internal i32 linker_stage(LinkerData *gen) {
 			if (is_osx && build_context.ODIN_DEBUG) {
 			if (is_osx && build_context.ODIN_DEBUG) {
 				// NOTE: macOS links DWARF symbols dynamically. Dsymutil will map the stubs in the exe
 				// NOTE: macOS links DWARF symbols dynamically. Dsymutil will map the stubs in the exe
 				// to the symbols in the object file
 				// to the symbols in the object file
-				result = system_exec_command_line_app("dsymutil", "dsymutil %.*s", LIT(output_filename));
+				result = system_exec_command_line_app("dsymutil", "dsymutil \"%.*s\"", LIT(output_filename));
 
 
 				if (result) {
 				if (result) {
 					return result;
 					return result;