Jelajahi Sumber

improve boost for msvc

ruki 6 tahun lalu
induk
melakukan
208fee0bb6
1 mengubah file dengan 7 tambahan dan 0 penghapusan
  1. 7 0
      packages/b/boost/xmake.lua

+ 7 - 0
packages/b/boost/xmake.lua

@@ -99,6 +99,13 @@ package("boost")
             "link=static",
             "cxxflags=-std=c++14"
         }
+        local arch = package:arch()
+        if arch == "x64" or arch == "x86_64" then
+            table.insert(argv, "address-model=64")
+        else
+            table.insert(argv, "address-model=32")
+        end
+        table.insert(argv, "debug-symbols=" .. (package:debug() and "on" or "off"))
         if is_host("windows") then
             os.vrunv("bootstrap.bat", bootstrap_argv)
         else