• R/O
  • HTTP
  • SSH
  • HTTPS

提交

标签
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

修订版89040c801f56972547e927a71ad523b2fadf2fa9 (tree)
时间2024-05-19 21:43:23
作者Fs <Fsu0413@vip....>
CommiterFs

Log Message

remove ninja from CMake environment variable set since ninja is added to PATH

Signed-off-by: Fs <Fsu0413@vip.qq.com>

更改概述

差异

--- a/Compile/lib/Configuration.lua
+++ b/Compile/lib/Configuration.lua
@@ -65,9 +65,9 @@ conf.host.win = {
6565 ["3.1.50"] = "D:\\emsdk-3.1.50\\",
6666 },
6767 ["cMakePath"] = {
68- ["20"] = {"D:\\cmake-3.20.2-windows-x86_64\\bin", "D:\\ninja"},
69- ["27"] = {"D:\\cmake-3.27.6-windows-x86_64\\bin", "D:\\ninja"},
70- ["Latest"] = {"D:\\cmake-3.29.0-windows-x86_64\\bin", "D:\\ninja"},
68+ ["20"] = "D:\\cmake-3.20.2-windows-x86_64\\bin",
69+ ["27"] = "D:\\cmake-3.27.6-windows-x86_64\\bin",
70+ ["Latest"] = "D:\\cmake-3.29.0-windows-x86_64\\bin",
7171 },
7272 ["jdkPath"] = {
7373 ["8"] = "D:\\OpenJDK8U-jdk_x64_windows_hotspot_8u402b06\\jdk8u402-b06",
@@ -100,8 +100,8 @@ conf.host.winArm = {
100100 ["sourcePackagePath"] = "D:\\Qt\\",
101101 ["buildRootPath"] = "D:\\Qt\\", -- On Windows, the build root should be same with source package
102102 ["cMakePath"] = {
103- ["27"] = {"D:\\cmake-3.27.6-windows-arm64\\bin", "D:\\ninja"},
104- ["Latest"] = {"D:\\cmake-3.29.0-windows-arm64\\bin", "D:\\ninja"},
103+ ["27"] = "D:\\cmake-3.27.6-windows-arm64\\bin",
104+ ["Latest"] = "D:\\cmake-3.29.0-windows-arm64\\bin",
105105 },
106106 ["jdkPath"] = {
107107 ["11"] = "D:\\microsoft-jdk-11.0.22-windows-aarch64\\jdk-11.0.22+7",
@@ -179,7 +179,7 @@ conf.host.linux = {
179179 ["3.1.50"] = "/opt/env/emsdk-3.1.50/",
180180 },
181181 ["cMakePath"] = {
182- ["27"] = {"/home/fs/install-cmake3_27_6/bin"},
182+ ["27"] = "/home/fs/install-cmake3_27_6/bin",
183183 },
184184 ["jdkPath"] = {
185185 ["8"] = "/usr/lib/jvm/java-1.8.0-openjdk/",
@@ -255,7 +255,7 @@ conf.host.macM1 = {
255255 ["3.1.50"] = "/opt/env/emsdk-3.1.50/",
256256 },
257257 ["cMakePath"] = {
258- ["27"] = {"/Users/fs/install-cmake3_27_6/bin"},
258+ ["27"] = "/Users/fs/install-cmake3_27_6/bin",
259259 },
260260 ["jdkPath"] = {
261261 -- It is said that zulu JDK runs faster on M1 chips...
@@ -919,9 +919,15 @@ conf.MariaDB.generateConfTable = function(self, host, job)
919919
920920 hostToolchainVersion = compilerVer[hostToolchainVersionQueryFuncName](configureHost.makefileTemplate == "win", hostToolchainVersionQueryPath, hostToolchainExecutableName)
921921
922- if configureHost.cMakePath and configureHost.cMakePath.Latest then
923- for _, p in ipairs(configureHost.cMakePath.Latest) do
924- table.insert(ret.path, p)
922+ if configureHost.cMakePath then
923+ local usedCMakePath = configureHost.cMakePath.Latest
924+ if usedCMakePath then
925+ if type(usedCMakePath) == "string" then
926+ usedCMakePath = {usedCMakePath}
927+ end
928+ for _, p in ipairs(usedCMakePath) do
929+ table.insert(ret.path, p)
930+ end
925931 end
926932 end
927933