Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,13 @@ public static Path createTemporaryFile() {

@NonNull
public static SymbolLookup getSymbolLookup() {
Path tempFile = createTemporaryFile();
return SymbolLookup.libraryLookup(tempFile, Arena.global());
String envPath = System.getenv().get("LIBDAVE_PATH");
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would prefer using a system property for this.

Please also add some information about this to the readme.

if (envPath != null) {
return SymbolLookup.libraryLookup(envPath, Arena.global());
} else {
Path tempFile = createTemporaryFile();
return SymbolLookup.libraryLookup(tempFile, Arena.global());
}
}

@NonNull
Expand Down