Browse Source

Improve cross-platform (Windows)

master
Tal Kol 3 years ago
parent
commit
6b132e1a97
  1. 2
      build/_build.ts

2
build/_build.ts

@ -101,7 +101,7 @@ async function main() {
// run the func compiler to create a fif file // run the func compiler to create a fif file
console.log(` - Trying to compile '${mergedFuncArtifact}' with 'func' compiler..`); console.log(` - Trying to compile '${mergedFuncArtifact}' with 'func' compiler..`);
const buildErrors = child_process.execSync(`func -APS -o build/${contractName}.fif ${mergedFuncArtifact} 1>&3 2>&1`).toString(); const buildErrors = child_process.execSync(`func -APS -o build/${contractName}.fif ${mergedFuncArtifact} 2>&1 1>node_modules/.tmpfunc`).toString();
if (buildErrors.length > 0) { if (buildErrors.length > 0) {
console.log(` - OH NO! Compilation Errors! The compiler output was:`); console.log(` - OH NO! Compilation Errors! The compiler output was:`);
console.log(`\n${buildErrors}`); console.log(`\n${buildErrors}`);

Loading…
Cancel
Save