Skip to content

Commit 33bd600

Browse files
committed
[test] Use target_arch for module dir on OpenBSD.
On OpenBSD, x86_64 is spelled as amd64, and Swift already uses amd64 for the module path on this platform. We save the target architecture name as `target_arch` elsewhere in the lit config file, so on this platform, we need to use this for the module path.
1 parent 2e32a7c commit 33bd600

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/lit.cfg

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1764,6 +1764,8 @@ if swift_execution_tests_extra_flags:
17641764
relative_platform_module_dir_prefix = ''
17651765
if platform.system() != 'Darwin':
17661766
relative_platform_module_dir_prefix = os.path.join(config.target_sdk_name, run_cpu)
1767+
if platform.system() == 'OpenBSD':
1768+
relative_platform_module_dir_prefix = os.path.join(config.target_sdk_name, target_arch)
17671769
platform_module_dir = make_path(test_resource_dir, config.target_sdk_name)
17681770

17691771
platform_dylib_dir = platform_module_dir

0 commit comments

Comments
 (0)