Skip to content

Commit

Permalink
In run_tests, use the regular path to the Vulkan library if lib.unstr…
Browse files Browse the repository at this point in the history
…ipped does not exist (#50629)

lib.unstripped will not be created in a "gn --no-stripped" build

See #50443
  • Loading branch information
jason-simmons committed Feb 14, 2024
1 parent fb45df2 commit 3af336b
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions testing/run_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,11 +238,13 @@ def run_engine_executable( # pylint: disable=too-many-arguments
env['LD_LIBRARY_PATH'] = build_dir
env['VK_DRIVER_FILES'] = os.path.join(build_dir, 'vk_swiftshader_icd.json')
if os.path.exists(unstripped_exe):
unstripped_vulkan = os.path.join(build_dir, 'lib.unstripped', 'libvulkan.so.1')
if os.path.exists(unstripped_vulkan):
vulkan_path = unstripped_vulkan
else:
vulkan_path = os.path.join(build_dir, 'libvulkan.so.1')
try:
os.symlink(
os.path.join(build_dir, 'lib.unstripped', 'libvulkan.so.1'),
os.path.join(build_dir, 'exe.unstripped', 'libvulkan.so.1')
)
os.symlink(vulkan_path, os.path.join(build_dir, 'exe.unstripped', 'libvulkan.so.1'))
except OSError as err:
if err.errno == errno.EEXIST:
pass
Expand Down

0 comments on commit 3af336b

Please sign in to comment.