소스 검색

add quotes for absolute path

Romāns Potašovs 5 달 전
부모
커밋
dc75ee72ae
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/linker.cpp

+ 1 - 1
src/linker.cpp

@@ -603,7 +603,7 @@ try_cross_linking:;
 								// object
 								// object
 								// dynamic lib
 								// dynamic lib
 								// static libs, absolute full path relative to the file in which the lib was imported from
 								// static libs, absolute full path relative to the file in which the lib was imported from
-								lib_str = gb_string_append_fmt(lib_str, " %.*s ", LIT(lib));
+								lib_str = gb_string_append_fmt(lib_str, " \"%.*s\" ", LIT(lib));
 							} else {
 							} else {
 								// dynamic or static system lib, just link regularly searching system library paths
 								// dynamic or static system lib, just link regularly searching system library paths
 								lib_str = gb_string_append_fmt(lib_str, " -l%.*s ", LIT(lib));
 								lib_str = gb_string_append_fmt(lib_str, " -l%.*s ", LIT(lib));