From 2108fa026e6eeec6dfbca6947c1cf27d344c9b09 Mon Sep 17 00:00:00 2001 From: Simon Sapin Date: Thu, 29 Sep 2016 09:15:01 +0200 Subject: Fix OS-Mesa discovery in debug mode. --- python/servo/testing_commands.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'python/servo/testing_commands.py') diff --git a/python/servo/testing_commands.py b/python/servo/testing_commands.py index f990fbf9ec2..5f7a9e1fd1d 100644 --- a/python/servo/testing_commands.py +++ b/python/servo/testing_commands.py @@ -434,7 +434,7 @@ class MachCommands(CommandBase): # add it to the dynamic linker search path. if sys.platform.startswith('linux'): try: - args = [self.get_binary_path(True, False)] + args = [self.get_binary_path(kwargs["release"], not kwargs["release"])] osmesa_path = path.join(find_dep_path_newest('osmesa-src', args[0]), "out", "lib", "gallium") os.environ["LD_LIBRARY_PATH"] = osmesa_path os.environ["GALLIUM_DRIVER"] = "softpipe" @@ -444,7 +444,7 @@ class MachCommands(CommandBase): pass if sys.platform.startswith('darwin'): try: - args = [self.get_binary_path(True, False)] + args = [self.get_binary_path(kwargs["release"], not kwargs["release"])] osmesa_path = path.join(find_dep_path_newest('osmesa-src', args[0]), "out", "src", "gallium", "targets", "osmesa", ".libs") glapi_path = path.join(find_dep_path_newest('osmesa-src', args[0]), -- cgit v1.2.3