Skip to content

Commit 6f1253d

Browse files
committed
remove last cleaner
1 parent 69f297a commit 6f1253d

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

c2wasm-api/src/chooks.ts

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ export function build_project(project: RequestBody, base: string) {
364364
};
365365
build_result.tasks.push(opt_obj);
366366
if (!optimize_wasm(dir, result, opt_options, opt_obj)) {
367-
return complete(false, 'Optimization error');
367+
return complete(false, 'Pass 1 Optimization error');
368368
}
369369
}
370370

@@ -374,7 +374,7 @@ export function build_project(project: RequestBody, base: string) {
374374
};
375375
build_result.tasks.push(clean_obj);
376376
if (!clean_wasm(dir, result, clean_obj)) {
377-
return complete(false, 'Post-build error');
377+
return complete(false, 'Pass 1 Clean error');
378378
}
379379
}
380380

@@ -384,19 +384,19 @@ export function build_project(project: RequestBody, base: string) {
384384
};
385385
build_result.tasks.push(opt_obj);
386386
if (!optimize_wasm(dir, result, opt_options, opt_obj)) {
387-
return complete(false, 'Optimization error');
387+
return complete(false, 'Pass 2 Optimization error');
388388
}
389389
}
390390

391-
if (strip) {
392-
const clean_obj = {
393-
name: 'cleaning wasm'
394-
};
395-
build_result.tasks.push(clean_obj);
396-
if (!clean_wasm(dir, result, clean_obj)) {
397-
return complete(false, 'Post-build error');
398-
}
399-
}
391+
// if (strip) {
392+
// const clean_obj = {
393+
// name: 'cleaning wasm'
394+
// };
395+
// build_result.tasks.push(clean_obj);
396+
// if (!clean_wasm(dir, result, clean_obj)) {
397+
// return complete(false, 'Pass 2 Clean error');
398+
// }
399+
// }
400400

401401
const guard_result_obj = {
402402
name: 'guard checking wasm'

0 commit comments

Comments
 (0)