Skip to content

Commit

Permalink
Fix OS-Mesa discovery in debug mode.
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonSapin committed Sep 29, 2016
1 parent ccfc601 commit 2108fa0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/servo/testing_commands.py
Expand Up @@ -434,7 +434,7 @@ def wptrunner(self, run_file, **kwargs):
# 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"
Expand All @@ -444,7 +444,7 @@ def wptrunner(self, run_file, **kwargs):
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]),
Expand Down

0 comments on commit 2108fa0

Please sign in to comment.