Skip to content

Commit

Permalink
Quote absolute library paths
Browse files Browse the repository at this point in the history
  • Loading branch information
JornVernee committed Sep 2, 2020
1 parent a22b379 commit 4f56033
Showing 1 changed file with 5 additions and 1 deletion.
Expand Up @@ -635,12 +635,16 @@ private void emitLibraries(String[] libraryNames) {
for (String lib : libraryNames) {
indent();
append('\"');
append(lib);
append(quoteLibraryName(lib));
append("\",\n");
}
decrAlign();
indent();
append("});\n\n");
decrAlign();
}

private static String quoteLibraryName(String lib) {
return lib.replace("\\", "\\\\"); // double up slashes
}
}

0 comments on commit 4f56033

Please sign in to comment.