pinokiod 3.3.25 → 3.3.27

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 CHANGED
@@ -175,30 +175,43 @@ class VS {
175
175
  }
176
176
  */
177
177
 
178
- let build_paths = paths.BUILD_PATH
179
- // look for vcvarsall
180
- // try to use 2019 first
181
- for(let p of build_paths) {
182
- if (/.*2019.*/.test(p)) {
183
- const e = await this.kernel.bin.exists(p)
184
- if (e) {
185
- let vcvars_path = path.resolve(p, "vcvarsall.bat")
186
- env.VCVARSALL_PATH = vcvars_path
187
- break
178
+ if (paths.BUILD_PATH) {
179
+ let build_paths = paths.BUILD_PATH
180
+ // look for vcvarsall
181
+ // try to use 2019 first
182
+ for(let p of build_paths) {
183
+ if (/.*2019.*/.test(p)) {
184
+ const e = await this.kernel.bin.exists(p)
185
+ console.log(">1 e", {e, p})
186
+ if (e) {
187
+ let vcvars_path = path.resolve(p, "vcvarsall.bat")
188
+ const e2 = await this.kernel.bin.exists(vcvars_path)
189
+ console.log(">1 e2", e2)
190
+ if (e2) {
191
+ env.VCVARSALL_PATH = vcvars_path
192
+ break
193
+ }
194
+ }
188
195
  }
189
196
  }
190
- }
191
197
 
192
- // only if 2019 doesn't exist try others
193
- if (!env.VCVARSALL_PATH) {
194
- for(let p of build_paths) {
195
- const e = await this.kernel.bin.exists(p)
196
- if (e) {
197
- let vcvars_path = path.resolve(p, "vcvarsall.bat")
198
- env.VCVARSALL_PATH = vcvars_path
199
- break
198
+ // only if 2019 doesn't exist try others
199
+ if (!env.VCVARSALL_PATH) {
200
+ for(let p of build_paths) {
201
+ const e = await this.kernel.bin.exists(p)
202
+ console.log(">2 e", { e, p})
203
+ if (e) {
204
+ let vcvars_path = path.resolve(p, "vcvarsall.bat")
205
+ const e2 = await this.kernel.bin.exists(vcvars_path)
206
+ console.log(">2 e2", e2)
207
+ if (e2) {
208
+ env.VCVARSALL_PATH = vcvars_path
209
+ break
210
+ }
211
+ }
200
212
  }
201
213
  }
214
+ console.log(">>> env", env)
202
215
  }
203
216
 
204
217
  // const clpaths = await glob('**/bin/Hostx64/x64/cl.exe', { cwd: paths.MSVC_PATH })
package/kernel/shell.js CHANGED
@@ -692,7 +692,7 @@ class Shell {
692
692
  // console.log('vc vars env doesnt exist')
693
693
  }
694
694
  } catch (e) {
695
- // console.log('vc vars setup', e)
695
+ console.log('vc vars setup', e)
696
696
  }
697
697
 
698
698
  // const vs_path_env = this.kernel.bin.vs_path_env
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pinokiod",
3
- "version": "3.3.25",
3
+ "version": "3.3.27",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {