Skip to content
Open
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,9 +46,12 @@ public static Path createTemporaryFile() {

@NonNull
public static SymbolLookup getSymbolLookup() {
String envPath = System.getenv().get("LIBDAVE_PATH");
if (envPath != null) {
return SymbolLookup.libraryLookup(envPath, Arena.global());
String libdavePath = System.getProperty("LIBDAVE_PATH");
if (libdavePath == null || libdavePath.isBlank()) {
libdavePath = System.getenv("LIBDAVE_PATH");
}
if (libdavePath != null) {
return SymbolLookup.libraryLookup(libdavePath, Arena.global());
} else {
Path tempFile = createTemporaryFile();
return SymbolLookup.libraryLookup(tempFile, Arena.global());
Expand Down