File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -242,10 +242,17 @@ def configure(env: "SConsEnvironment"):
242242 env .Append (LINKFLAGS = ["-framework" , "Metal" , "-framework" , "IOSurface" ])
243243 if not env ["use_volk" ]:
244244 env .Append (LINKFLAGS = ["-lMoltenVK" ])
245- mvk_path = detect_mvk (env , "macos-arm64_x86_64" )
245+
246+ mvk_path = ""
247+ arch_variants = ["macos-arm64_x86_64" , "macos-" + env ["arch" ]]
248+ for arch in arch_variants :
249+ mvk_path = detect_mvk (env , arch )
250+ if mvk_path != "" :
251+ mvk_path = os .path .join (mvk_path , arch )
252+ break
246253
247254 if mvk_path != "" :
248- env .Append (LINKFLAGS = ["-L" + os . path . join ( mvk_path , "macos-arm64_x86_64" ) ])
255+ env .Append (LINKFLAGS = ["-L" + mvk_path ])
249256 else :
250257 print (
251258 "MoltenVK SDK installation directory not found, use 'vulkan_sdk_path' SCons parameter to specify SDK path."
You can’t perform that action at this time.
0 commit comments