File tree Expand file tree Collapse file tree 2 files changed +25
-22
lines changed Expand file tree Collapse file tree 2 files changed +25
-22
lines changed Original file line number Diff line number Diff line change @@ -557,35 +557,16 @@ function(${args}) {
557
557
print ( '\nvar proxiedFunctionTable = [' + proxiedFunctionTable . join ( ) + '];\n' ) ;
558
558
}
559
559
560
- if ( ( SUPPORT_BASE64_EMBEDDING || FORCE_FILESYSTEM ) && ! MINIMAL_RUNTIME ) {
561
- includeFile ( 'base64Utils.js' ) ;
562
- }
563
-
564
560
if ( abortExecution ) {
565
561
throw Error ( 'Aborting compilation due to previous errors' ) ;
566
562
}
567
563
568
- // This is the main 'post' pass. Print out the generated code that we have here, together with the
569
- // rest of the output that we started to print out earlier (see comment on the
564
+ // This is the main 'post' pass. Print out the generated code
565
+ // that we have here, together with the rest of the output
566
+ // that we started to print out earlier (see comment on the
570
567
// "Final shape that will be created").
571
568
print ( '// EMSCRIPTEN_END_FUNCS\n' ) ;
572
569
573
- if ( HEADLESS ) {
574
- print ( 'if (!ENVIRONMENT_IS_WEB) {' ) ;
575
- includeFile ( 'headlessCanvas.js' ) ;
576
- includeFile ( 'headless.js' )
577
- print ( '}' ) ;
578
- }
579
- if ( PROXY_TO_WORKER ) {
580
- print ( 'if (ENVIRONMENT_IS_WORKER) {\n' ) ;
581
- includeFile ( 'webGLWorker.js' ) ;
582
- includeFile ( 'proxyWorker.js' ) ;
583
- print ( '}' ) ;
584
- }
585
- if ( DETERMINISTIC ) {
586
- includeFile ( 'deterministic.js' ) ;
587
- }
588
-
589
570
const postFile = MINIMAL_RUNTIME ? 'postamble_minimal.js' : 'postamble.js' ;
590
571
includeFile ( postFile ) ;
591
572
Original file line number Diff line number Diff line change 6
6
7
7
// === Auto-generated postamble setup entry stuff ===
8
8
9
+ #if SUPPORT_BASE64_EMBEDDING || FORCE_FILESYSTEM
10
+ #include "base64Utils.js"
11
+ #endif
12
+
13
+ #if HEADLESS
14
+ if ( ! ENVIRONMENT_IS_WEB ) {
15
+ #include "headlessCanvas.js"
16
+ #include "headless.js"
17
+ }
18
+ #endif
19
+
20
+ #if PROXY_TO_WORKER
21
+ if ( ENVIRONMENT_IS_WORKER ) {
22
+ #include "webGLWorker.js'
23
+ #include " proxyWorker . js "
24
+ }
25
+ #endif
26
+
27
+ #if DETERMINISTIC
28
+ #include "deterministic.js"
29
+ #endif
30
+
9
31
{ { { exportRuntime ( ) } } }
10
32
11
33
var calledRun ;
You can’t perform that action at this time.
0 commit comments