OSDN Git Service

Fix non-component unittests on Mac OS.
[android-x86/external-swiftshader.git] / tests / unittests / BUILD.gn
index 135ca8c..d5a106e 100644 (file)
@@ -42,8 +42,10 @@ test("swiftshader_unittests") {
       "/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" ]
   }