OSDN Git Service
(root)
/
android-x86
/
external-swiftshader.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix non-component unittests on Mac OS.
[android-x86/external-swiftshader.git]
/
tests
/
unittests
/
BUILD.gn
diff --git
a/tests/unittests/BUILD.gn
b/tests/unittests/BUILD.gn
index
135ca8c
..
d5a106e
100644
(file)
--- a/
tests/unittests/BUILD.gn
+++ b/
tests/unittests/BUILD.gn
@@
-42,8
+42,10
@@
test("swiftshader_unittests") {
"/DELAYLOAD:libGLESv2.dll",
]
} else if (is_mac) {
"/DELAYLOAD:libGLESv2.dll",
]
} else if (is_mac) {
- # On Mac OS the rpath is part of the dylib and a full file path instead of
- # a directory, which is added to the executable at link time.
+ ldflags = [
+ "-rpath",
+ "@executable_path/swiftshader/",
+ ]
} else {
ldflags = [ "-Wl,-rpath=\$ORIGIN/swiftshader" ]
}
} else {
ldflags = [ "-Wl,-rpath=\$ORIGIN/swiftshader" ]
}