Bläddra i källkod

portaudio: Fix building with latest xmake (#7849)

because vs_runtime option has been renamed
Jérôme Leclercq 1 månad sedan
förälder
incheckning
501b29dfd5
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      packages/p/portaudio/xmake.lua

+ 1 - 1
packages/p/portaudio/xmake.lua

@@ -71,7 +71,7 @@ package("portaudio")
         table.insert(configs, "-DPA_USE_SKELETON=" .. (package:config("skeleton") and "ON" or "OFF"))
         table.insert(configs, "-DPA_USE_ASIO=" .. (package:config("asio") and "ON" or "OFF"))
         if package:is_plat("windows") then
-            table.insert(configs, "-DPA_DLL_LINK_WITH_STATIC_RUNTIME=" .. (package:config("vs_runtime"):startswith("MT") and "ON" or "OFF"))
+            table.insert(configs, "-DPA_DLL_LINK_WITH_STATIC_RUNTIME=" .. (package:has_runtime("MT") and "ON" or "OFF"))
             table.insert(configs, "-DPA_USE_DS=" .. (package:config("direct_sound") and "ON" or "OFF"))
             table.insert(configs, "-DPA_USE_WMME=" .. (package:config("wmme") and "ON" or "OFF"))
             table.insert(configs, "-DPA_USE_WASAPI=" .. (package:config("wasapi") and "ON" or "OFF"))