make --dylib mode work on linux
We're looking up skvm_jit where we need to look up _skvm_jit. Change-Id: Iad00d2a371cbec590ebecc2ead15dc0aab5a1d4b Reviewed-on: https://skia-review.googlesource.com/c/skia/+/285676 Reviewed-by: Herb Derby <herb@google.com> Commit-Queue: Mike Klein <mtklein@google.com>
This commit is contained in:
parent
b16beb94a3
commit
f3dca0bee1
@ -3521,7 +3521,11 @@ namespace skvm {
|
||||
|
||||
// Load that dynamic library and look up skvm_jit().
|
||||
fImpl->dylib = dlopen(path.c_str(), RTLD_NOW|RTLD_LOCAL);
|
||||
fImpl->jit_entry.store(dlsym(fImpl->dylib, "skvm_jit"));
|
||||
void* sym = nullptr;
|
||||
for (const char* name : {"skvm_jit", "_skvm_jit"} ) {
|
||||
if (!sym) { sym = dlsym(fImpl->dylib, name); }
|
||||
}
|
||||
fImpl->jit_entry.store(sym);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user