pinokiod 3.3.44 → 3.3.46
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/kernel/bin/vs.js +7 -2
- package/package.json +1 -1
package/kernel/bin/vs.js
CHANGED
|
@@ -45,6 +45,7 @@ class VS {
|
|
|
45
45
|
if (e1) {
|
|
46
46
|
console.log("exists", ROOT_PATH)
|
|
47
47
|
let vcpaths = await glob('**/VC/Tools/MSVC', { absolute: true, cwd: ROOT_PATH })
|
|
48
|
+
console.log({ vcpaths })
|
|
48
49
|
if (vcpaths && vcpaths > 0) {
|
|
49
50
|
for(let vcpath of vcpaths) {
|
|
50
51
|
if (/.*2019.*/.test(vcpath)) {
|
|
@@ -53,6 +54,7 @@ class VS {
|
|
|
53
54
|
}
|
|
54
55
|
}
|
|
55
56
|
let buildpaths = await glob('**/VC/Auxiliary/Build', { absolute: true, cwd: ROOT_PATH })
|
|
57
|
+
console.log({ buildpaths })
|
|
56
58
|
if (buildpaths && buildpaths.length > 0) {
|
|
57
59
|
for(let buildpath of buildpaths) {
|
|
58
60
|
if (/.*2019.*/.test(buildpath)) {
|
|
@@ -62,6 +64,7 @@ class VS {
|
|
|
62
64
|
}
|
|
63
65
|
|
|
64
66
|
let cmakepaths = await glob('**/Microsoft/CMake/CMake/bin', { absolute: true, cwd: ROOT_PATH })
|
|
67
|
+
console.log({ cmakepaths })
|
|
65
68
|
if (cmakepaths && cmakepaths.length > 0) {
|
|
66
69
|
for(let cmakepath of cmakepaths) {
|
|
67
70
|
if (/.*2019.*/.test(cmakepath)) {
|
|
@@ -71,6 +74,7 @@ class VS {
|
|
|
71
74
|
}
|
|
72
75
|
//CL_PATH = await glob('**/Hostx64/x64/cl.exe', { absolute: true, cwd: ROOT_PATH })
|
|
73
76
|
let clpaths = await glob('**/Hostx64/x64', { absolute: true, cwd: ROOT_PATH })
|
|
77
|
+
console.log({ clpaths })
|
|
74
78
|
if (clpaths && clpaths.length > 0) {
|
|
75
79
|
for(let clpath of clpaths) {
|
|
76
80
|
if (/.*2019.*/.test(clpath)) {
|
|
@@ -101,9 +105,9 @@ class VS {
|
|
|
101
105
|
}
|
|
102
106
|
*/
|
|
103
107
|
this._env = await this.getpaths()
|
|
104
|
-
if (this.
|
|
108
|
+
if (this._env.BUILD_PATH.length > 0) {
|
|
105
109
|
// look for vcvarsall
|
|
106
|
-
for(let p of this.
|
|
110
|
+
for(let p of this._env.BUILD_PATH) {
|
|
107
111
|
let vcvars_path = path.resolve(p, "vcvarsall.bat")
|
|
108
112
|
const e = await this.kernel.bin.exists(vcvars_path)
|
|
109
113
|
console.log("> vcvarsall.bat path exists?", { vcvars_path, e })
|
|
@@ -113,6 +117,7 @@ class VS {
|
|
|
113
117
|
}
|
|
114
118
|
}
|
|
115
119
|
}
|
|
120
|
+
console.log("vs.init() this._env=", this.env)
|
|
116
121
|
}
|
|
117
122
|
}
|
|
118
123
|
env () {
|