pinokiod 3.3.42 → 3.3.43
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/shell.js +5 -0
- package/package.json +1 -1
package/kernel/shell.js
CHANGED
|
@@ -155,6 +155,10 @@ class Shell {
|
|
|
155
155
|
].join(':');
|
|
156
156
|
}
|
|
157
157
|
|
|
158
|
+
if (this.platform === "linux") {
|
|
159
|
+
this.env.NVCC_PREPEND_FLAGS = "-ccbin {{which('g++')}}"
|
|
160
|
+
}
|
|
161
|
+
|
|
158
162
|
this.env[PATH_KEY] = this.env[PATH_KEY] + path.delimiter + path.resolve(this.kernel.homedir, 'bin')
|
|
159
163
|
|
|
160
164
|
|
|
@@ -662,6 +666,7 @@ class Shell {
|
|
|
662
666
|
if (this.platform === "win32") {
|
|
663
667
|
try {
|
|
664
668
|
let vcvars_path = this.kernel.bin.vs_path_env.VCVARSALL_PATH
|
|
669
|
+
console.log(`[shell] vcvars_path = ${vcvars_path}`)
|
|
665
670
|
if (vcvars_path) {
|
|
666
671
|
const architecture = os.arch().toLowerCase(); // 'x64', 'ia32' (32-bit), etc.
|
|
667
672
|
const armArchitecture = process.arch.toLowerCase(); // For ARM-based architectures (on Windows), process.arch might be 'arm64', 'arm', etc.
|