Skip to content

Commit

Permalink
Added support for explicit object files in the linking stage
Browse files Browse the repository at this point in the history
  • Loading branch information
JCash committed May 11, 2020
1 parent 5c0fea1 commit a6db4e7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions server/src/main/java/com/defold/extender/Extender.java
Original file line number Diff line number Diff line change
Expand Up @@ -621,6 +621,7 @@ private List<File> linkEngine(List<String> symbols, Map<String, Object> manifest
context.put("ext", env);
context.put("engineLibs", ExtenderUtil.pruneItems(ExtenderUtil.getStringList(context, "engineLibs"), ExtenderUtil.getStringList(mainContext, "includeLibs"), ExtenderUtil.getStringList(mainContext, "excludeLibs")) );
context.put("engineJsLibs", ExtenderUtil.pruneItems(ExtenderUtil.getStringList(context, "engineJsLibs"), ExtenderUtil.getStringList(mainContext, "includeJsLibs"), ExtenderUtil.getStringList(mainContext, "excludeJsLibs")) );
context.put("objectFiles", ExtenderUtil.pruneItems(ExtenderUtil.getStringList(mainContext, "objectFiles"), ExtenderUtil.getStringList(mainContext, "includeObjectFiles"), ExtenderUtil.getStringList(mainContext, "excludeObjectFiles") ));

// WINE->clang transition pt1: in the transition period from link.exe -> lld, we want to make sure we can write "foo" as opposed to "foo.lib"
context.put("libs", patchLibs((List<String>) context.get("libs")));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@ void validate(String extensionName, Map<String, Object> context) throws Extender
case "excludeSymbols":
case "use-clang": // deprecated
case "aaptExtraPackages":
case "excludeObjectFiles":
case "includeObjectFiles":
case "objectFiles":
continue; // no need to whitelist

default:
Expand Down

0 comments on commit a6db4e7

Please sign in to comment.