Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 3af336b

Browse files
In run_tests, use the regular path to the Vulkan library if lib.unstripped does not exist (#50629)
lib.unstripped will not be created in a "gn --no-stripped" build See #50443
1 parent fb45df2 commit 3af336b

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

testing/run_tests.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -238,11 +238,13 @@ def run_engine_executable( # pylint: disable=too-many-arguments
238238
env['LD_LIBRARY_PATH'] = build_dir
239239
env['VK_DRIVER_FILES'] = os.path.join(build_dir, 'vk_swiftshader_icd.json')
240240
if os.path.exists(unstripped_exe):
241+
unstripped_vulkan = os.path.join(build_dir, 'lib.unstripped', 'libvulkan.so.1')
242+
if os.path.exists(unstripped_vulkan):
243+
vulkan_path = unstripped_vulkan
244+
else:
245+
vulkan_path = os.path.join(build_dir, 'libvulkan.so.1')
241246
try:
242-
os.symlink(
243-
os.path.join(build_dir, 'lib.unstripped', 'libvulkan.so.1'),
244-
os.path.join(build_dir, 'exe.unstripped', 'libvulkan.so.1')
245-
)
247+
os.symlink(vulkan_path, os.path.join(build_dir, 'exe.unstripped', 'libvulkan.so.1'))
246248
except OSError as err:
247249
if err.errno == errno.EEXIST:
248250
pass

0 commit comments

Comments
 (0)