修订版 | 89040c801f56972547e927a71ad523b2fadf2fa9 (tree) |
---|---|
时间 | 2024-05-19 21:43:23 |
作者 | Fs <Fsu0413@vip....> |
Commiter | Fs |
remove ninja from CMake environment variable set since ninja is added to PATH
Signed-off-by: Fs <Fsu0413@vip.qq.com>
@@ -65,9 +65,9 @@ conf.host.win = { | ||
65 | 65 | ["3.1.50"] = "D:\\emsdk-3.1.50\\", |
66 | 66 | }, |
67 | 67 | ["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", | |
71 | 71 | }, |
72 | 72 | ["jdkPath"] = { |
73 | 73 | ["8"] = "D:\\OpenJDK8U-jdk_x64_windows_hotspot_8u402b06\\jdk8u402-b06", |
@@ -100,8 +100,8 @@ conf.host.winArm = { | ||
100 | 100 | ["sourcePackagePath"] = "D:\\Qt\\", |
101 | 101 | ["buildRootPath"] = "D:\\Qt\\", -- On Windows, the build root should be same with source package |
102 | 102 | ["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", | |
105 | 105 | }, |
106 | 106 | ["jdkPath"] = { |
107 | 107 | ["11"] = "D:\\microsoft-jdk-11.0.22-windows-aarch64\\jdk-11.0.22+7", |
@@ -179,7 +179,7 @@ conf.host.linux = { | ||
179 | 179 | ["3.1.50"] = "/opt/env/emsdk-3.1.50/", |
180 | 180 | }, |
181 | 181 | ["cMakePath"] = { |
182 | - ["27"] = {"/home/fs/install-cmake3_27_6/bin"}, | |
182 | + ["27"] = "/home/fs/install-cmake3_27_6/bin", | |
183 | 183 | }, |
184 | 184 | ["jdkPath"] = { |
185 | 185 | ["8"] = "/usr/lib/jvm/java-1.8.0-openjdk/", |
@@ -255,7 +255,7 @@ conf.host.macM1 = { | ||
255 | 255 | ["3.1.50"] = "/opt/env/emsdk-3.1.50/", |
256 | 256 | }, |
257 | 257 | ["cMakePath"] = { |
258 | - ["27"] = {"/Users/fs/install-cmake3_27_6/bin"}, | |
258 | + ["27"] = "/Users/fs/install-cmake3_27_6/bin", | |
259 | 259 | }, |
260 | 260 | ["jdkPath"] = { |
261 | 261 | -- It is said that zulu JDK runs faster on M1 chips... |
@@ -919,9 +919,15 @@ conf.MariaDB.generateConfTable = function(self, host, job) | ||
919 | 919 | |
920 | 920 | hostToolchainVersion = compilerVer[hostToolchainVersionQueryFuncName](configureHost.makefileTemplate == "win", hostToolchainVersionQueryPath, hostToolchainExecutableName) |
921 | 921 | |
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 | |
925 | 931 | end |
926 | 932 | end |
927 | 933 |