webruby 0.2.7 → 0.9.1

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.
Files changed (1537) hide show
  1. checksums.yaml +4 -4
  2. data/lib/webruby/environment.rb +24 -8
  3. data/lib/webruby/rake/files.rake +6 -22
  4. data/lib/webruby/rake/general.rake +1 -1
  5. data/lib/webruby/rake/mruby.rake +1 -0
  6. data/lib/webruby/utility.rb +14 -0
  7. data/modules/mruby/AUTHORS +14 -0
  8. data/modules/mruby/CONTRIBUTING.md +7 -4
  9. data/modules/mruby/INSTALL +28 -11
  10. data/modules/mruby/MITL +13 -13
  11. data/modules/mruby/Makefile +4 -5
  12. data/modules/mruby/README.md +54 -49
  13. data/modules/mruby/Rakefile +36 -6
  14. data/modules/mruby/benchmark/ao-render.rb +1 -2
  15. data/modules/mruby/benchmark/bm_app_lc_fizzbuzz.rb +52 -0
  16. data/modules/mruby/benchmark/fib39.rb +0 -0
  17. data/modules/mruby/bintest/mrbc.rb +12 -0
  18. data/modules/mruby/build_config.rb +32 -2
  19. data/modules/mruby/doc/api/README.md +30 -0
  20. data/modules/mruby/doc/api/mruby.h.md +69 -0
  21. data/modules/mruby/doc/compile/README.md +208 -99
  22. data/modules/mruby/doc/debugger/README.md +370 -0
  23. data/modules/mruby/doc/language/Core.md +1590 -0
  24. data/modules/mruby/doc/language/README.md +9 -0
  25. data/modules/mruby/doc/language/generator.rb +15 -0
  26. data/modules/mruby/doc/language/mrbdoc/lib/mrbdoc_analyze.rb +231 -0
  27. data/modules/mruby/doc/language/mrbdoc/lib/mrbdoc_docu.rb +118 -0
  28. data/modules/mruby/doc/language/mrbdoc/mrbdoc.rb +38 -0
  29. data/modules/mruby/doc/mrbconf/README.md +160 -0
  30. data/modules/mruby/doc/mrbgems/README.md +136 -66
  31. data/modules/mruby/examples/mrbgems/c_and_ruby_extension_example/mrbgem.rake +1 -1
  32. data/modules/mruby/examples/mrbgems/c_and_ruby_extension_example/src/example.c +1 -1
  33. data/modules/mruby/examples/mrbgems/c_extension_example/mrbgem.rake +1 -1
  34. data/modules/mruby/examples/mrbgems/c_extension_example/src/example.c +1 -1
  35. data/modules/mruby/examples/mrbgems/ruby_extension_example/mrbgem.rake +1 -1
  36. data/modules/mruby/examples/targets/{ArduinoDue.rb → build_config_ArduinoDue.rb} +32 -6
  37. data/modules/mruby/examples/targets/build_config_IntelGalileo.rb +106 -0
  38. data/modules/mruby/examples/targets/{chipKitMax32.rb → build_config_chipKITMax32.rb} +26 -7
  39. data/modules/mruby/include/mrbconf.h +25 -1
  40. data/modules/mruby/include/mruby/array.h +32 -22
  41. data/modules/mruby/include/mruby/boxing_nan.h +94 -0
  42. data/modules/mruby/include/mruby/boxing_no.h +49 -0
  43. data/modules/mruby/include/mruby/boxing_word.h +119 -0
  44. data/modules/mruby/include/mruby/class.h +15 -13
  45. data/modules/mruby/include/mruby/compile.h +43 -36
  46. data/modules/mruby/include/mruby/data.h +13 -5
  47. data/modules/mruby/include/mruby/debug.h +9 -9
  48. data/modules/mruby/include/mruby/dump.h +32 -23
  49. data/modules/mruby/include/mruby/error.h +36 -0
  50. data/modules/mruby/include/mruby/gc.h +11 -6
  51. data/modules/mruby/include/mruby/hash.h +12 -12
  52. data/modules/mruby/include/mruby/irep.h +9 -3
  53. data/modules/mruby/include/mruby/khash.h +58 -41
  54. data/modules/mruby/include/mruby/numeric.h +38 -4
  55. data/modules/mruby/include/mruby/object.h +55 -0
  56. data/modules/mruby/include/mruby/opcode.h +160 -0
  57. data/modules/mruby/include/mruby/proc.h +19 -5
  58. data/modules/mruby/include/mruby/range.h +4 -3
  59. data/modules/mruby/include/mruby/re.h +20 -0
  60. data/modules/mruby/include/mruby/string.h +86 -47
  61. data/modules/mruby/include/mruby/value.h +100 -374
  62. data/modules/mruby/include/mruby/variable.h +34 -32
  63. data/modules/mruby/include/mruby/version.h +40 -0
  64. data/modules/mruby/include/mruby.h +211 -139
  65. data/modules/mruby/minirake +16 -9
  66. data/modules/mruby/mrbgems/default.gembox +12 -0
  67. data/modules/mruby/mrbgems/full-core.gembox +3 -3
  68. data/modules/mruby/mrbgems/mruby-array-ext/mrbgem.rake +1 -0
  69. data/modules/mruby/mrbgems/mruby-array-ext/mrblib/array.rb +488 -8
  70. data/modules/mruby/mrbgems/mruby-array-ext/src/array.c +57 -31
  71. data/modules/mruby/mrbgems/mruby-array-ext/test/array.rb +231 -45
  72. data/modules/mruby/mrbgems/mruby-bin-debugger/bintest/mrdb.rb +286 -0
  73. data/modules/mruby/mrbgems/mruby-bin-debugger/bintest/print.rb +701 -0
  74. data/modules/mruby/mrbgems/mruby-bin-debugger/mrbgem.rake +9 -0
  75. data/modules/mruby/mrbgems/mruby-bin-debugger/tools/mrdb/apibreak.c +516 -0
  76. data/modules/mruby/mrbgems/mruby-bin-debugger/tools/mrdb/apibreak.h +26 -0
  77. data/modules/mruby/mrbgems/mruby-bin-debugger/tools/mrdb/apilist.c +235 -0
  78. data/modules/mruby/mrbgems/mruby-bin-debugger/tools/mrdb/apilist.h +14 -0
  79. data/modules/mruby/mrbgems/mruby-bin-debugger/tools/mrdb/apiprint.c +78 -0
  80. data/modules/mruby/mrbgems/mruby-bin-debugger/tools/mrdb/apiprint.h +13 -0
  81. data/modules/mruby/mrbgems/mruby-bin-debugger/tools/mrdb/cmdbreak.c +428 -0
  82. data/modules/mruby/mrbgems/mruby-bin-debugger/tools/mrdb/cmdmisc.c +501 -0
  83. data/modules/mruby/mrbgems/mruby-bin-debugger/tools/mrdb/cmdprint.c +58 -0
  84. data/modules/mruby/mrbgems/mruby-bin-debugger/tools/mrdb/cmdrun.c +54 -0
  85. data/modules/mruby/mrbgems/mruby-bin-debugger/tools/mrdb/mrdb.c +746 -0
  86. data/modules/mruby/mrbgems/mruby-bin-debugger/tools/mrdb/mrdb.h +163 -0
  87. data/modules/mruby/mrbgems/mruby-bin-debugger/tools/mrdb/mrdbconf.h +16 -0
  88. data/modules/mruby/mrbgems/mruby-bin-debugger/tools/mrdb/mrdberror.h +20 -0
  89. data/modules/mruby/mrbgems/mruby-bin-mirb/bintest/mirb.rb +12 -0
  90. data/modules/mruby/mrbgems/mruby-bin-mirb/mrbgem.rake +14 -1
  91. data/modules/mruby/mrbgems/mruby-bin-mirb/tools/mirb/mirb.c +154 -72
  92. data/modules/mruby/mrbgems/mruby-bin-mruby/bintest/mruby.rb +46 -0
  93. data/modules/mruby/mrbgems/mruby-bin-mruby/mrbgem.rake +1 -0
  94. data/modules/mruby/mrbgems/mruby-bin-mruby/tools/mruby/mruby.c +37 -28
  95. data/modules/mruby/mrbgems/mruby-bin-mruby-config/mrbgem.rake +30 -0
  96. data/modules/mruby/mrbgems/mruby-bin-mruby-config/mruby-config +16 -0
  97. data/modules/mruby/mrbgems/mruby-bin-mruby-config/mruby-config.bat +30 -0
  98. data/modules/mruby/mrbgems/mruby-bin-strip/bintest/mruby-strip.rb +73 -0
  99. data/modules/mruby/mrbgems/mruby-bin-strip/mrbgem.rake +6 -0
  100. data/modules/mruby/mrbgems/mruby-bin-strip/tools/mruby-strip/mruby-strip.c +155 -0
  101. data/modules/mruby/mrbgems/mruby-enum-ext/mrbgem.rake +1 -0
  102. data/modules/mruby/mrbgems/mruby-enum-ext/mrblib/enum.rb +555 -21
  103. data/modules/mruby/mrbgems/mruby-enum-ext/test/enum.rb +119 -0
  104. data/modules/mruby/mrbgems/mruby-enum-lazy/mrbgem.rake +7 -0
  105. data/modules/mruby/mrbgems/mruby-enum-lazy/mrblib/lazy.rb +150 -0
  106. data/modules/mruby/mrbgems/mruby-enum-lazy/test/lazy.rb +47 -0
  107. data/modules/mruby/mrbgems/mruby-enumerator/mrbgem.rake +7 -0
  108. data/modules/mruby/mrbgems/mruby-enumerator/mrblib/enumerator.rb +636 -0
  109. data/modules/mruby/mrbgems/mruby-enumerator/test/enumerator.rb +537 -0
  110. data/modules/mruby/mrbgems/mruby-eval/mrbgem.rake +1 -0
  111. data/modules/mruby/mrbgems/mruby-eval/src/eval.c +243 -4
  112. data/modules/mruby/mrbgems/mruby-eval/test/eval.rb +80 -0
  113. data/modules/mruby/mrbgems/mruby-exit/mrbgem.rake +1 -0
  114. data/modules/mruby/mrbgems/mruby-exit/src/mruby-exit.c +1 -1
  115. data/modules/mruby/mrbgems/mruby-fiber/mrbgem.rake +1 -0
  116. data/modules/mruby/mrbgems/mruby-fiber/src/fiber.c +157 -51
  117. data/modules/mruby/mrbgems/mruby-fiber/test/fiber.rb +179 -35
  118. data/modules/mruby/mrbgems/mruby-hash-ext/mrbgem.rake +3 -0
  119. data/modules/mruby/mrbgems/mruby-hash-ext/mrblib/hash.rb +241 -1
  120. data/modules/mruby/mrbgems/mruby-hash-ext/src/hash-ext.c +11 -19
  121. data/modules/mruby/mrbgems/mruby-hash-ext/test/hash.rb +138 -1
  122. data/modules/mruby/mrbgems/mruby-kernel-ext/mrbgem.rake +5 -0
  123. data/modules/mruby/mrbgems/mruby-kernel-ext/src/kernel.c +183 -0
  124. data/modules/mruby/mrbgems/mruby-kernel-ext/test/kernel.rb +53 -0
  125. data/modules/mruby/mrbgems/mruby-math/mrbgem.rake +1 -0
  126. data/modules/mruby/mrbgems/mruby-math/src/math.c +107 -14
  127. data/modules/mruby/mrbgems/mruby-math/test/math.rb +16 -0
  128. data/modules/mruby/mrbgems/mruby-numeric-ext/mrbgem.rake +1 -0
  129. data/modules/mruby/mrbgems/mruby-numeric-ext/mrblib/numeric_ext.rb +5 -0
  130. data/modules/mruby/mrbgems/mruby-numeric-ext/test/numeric.rb +9 -1
  131. data/modules/mruby/mrbgems/mruby-object-ext/mrbgem.rake +1 -0
  132. data/modules/mruby/mrbgems/mruby-object-ext/mrblib/object.rb +19 -0
  133. data/modules/mruby/mrbgems/mruby-object-ext/src/object.c +5 -8
  134. data/modules/mruby/mrbgems/mruby-object-ext/test/object.rb +16 -0
  135. data/modules/mruby/mrbgems/mruby-objectspace/mrbgem.rake +1 -0
  136. data/modules/mruby/mrbgems/mruby-objectspace/src/mruby_objectspace.c +121 -53
  137. data/modules/mruby/mrbgems/mruby-objectspace/test/objectspace.rb +27 -4
  138. data/modules/mruby/mrbgems/mruby-print/mrbgem.rake +1 -0
  139. data/modules/mruby/mrbgems/mruby-print/src/print.c +3 -5
  140. data/modules/mruby/mrbgems/mruby-proc-ext/mrbgem.rake +1 -0
  141. data/modules/mruby/mrbgems/mruby-proc-ext/src/proc.c +89 -19
  142. data/modules/mruby/mrbgems/mruby-proc-ext/test/proc.c +56 -0
  143. data/modules/mruby/mrbgems/mruby-proc-ext/test/proc.rb +47 -0
  144. data/modules/mruby/mrbgems/mruby-random/mrbgem.rake +1 -0
  145. data/modules/mruby/mrbgems/mruby-random/src/mt19937ar.c +30 -25
  146. data/modules/mruby/mrbgems/mruby-random/src/mt19937ar.h +6 -3
  147. data/modules/mruby/mrbgems/mruby-random/src/random.c +157 -137
  148. data/modules/mruby/mrbgems/mruby-random/src/random.h +3 -3
  149. data/modules/mruby/mrbgems/mruby-random/test/random.rb +9 -9
  150. data/modules/mruby/mrbgems/mruby-range-ext/mrbgem.rake +1 -0
  151. data/modules/mruby/mrbgems/mruby-range-ext/src/range.c +57 -3
  152. data/modules/mruby/mrbgems/mruby-range-ext/test/range.rb +9 -0
  153. data/modules/mruby/mrbgems/mruby-sprintf/mrbgem.rake +1 -0
  154. data/modules/mruby/mrbgems/mruby-sprintf/mrblib/string.rb +9 -0
  155. data/modules/mruby/mrbgems/mruby-sprintf/src/sprintf.c +29 -23
  156. data/modules/mruby/mrbgems/mruby-sprintf/test/sprintf.rb +7 -2
  157. data/modules/mruby/mrbgems/mruby-string-ext/mrbgem.rake +1 -0
  158. data/modules/mruby/mrbgems/mruby-string-ext/mrblib/string.rb +250 -11
  159. data/modules/mruby/mrbgems/mruby-string-ext/src/string.c +220 -5
  160. data/modules/mruby/mrbgems/mruby-string-ext/test/string.rb +326 -4
  161. data/modules/mruby/mrbgems/mruby-string-utf8/mrbgem.rake +2 -0
  162. data/modules/mruby/mrbgems/mruby-string-utf8/src/string.c +486 -52
  163. data/modules/mruby/mrbgems/mruby-string-utf8/test/string.rb +97 -14
  164. data/modules/mruby/mrbgems/mruby-struct/mrbgem.rake +1 -0
  165. data/modules/mruby/mrbgems/mruby-struct/mrblib/struct.rb +31 -0
  166. data/modules/mruby/mrbgems/mruby-struct/src/struct.c +178 -196
  167. data/modules/mruby/mrbgems/mruby-struct/test/struct.rb +115 -61
  168. data/modules/mruby/mrbgems/mruby-symbol-ext/mrbgem.rake +1 -0
  169. data/modules/mruby/mrbgems/mruby-symbol-ext/mrblib/symbol.rb +22 -17
  170. data/modules/mruby/mrbgems/mruby-symbol-ext/src/symbol.c +20 -11
  171. data/modules/mruby/mrbgems/mruby-symbol-ext/test/symbol.rb +14 -0
  172. data/modules/mruby/mrbgems/mruby-time/mrbgem.rake +1 -0
  173. data/modules/mruby/mrbgems/mruby-time/mrblib/time.rb +9 -0
  174. data/modules/mruby/mrbgems/mruby-time/src/time.c +98 -37
  175. data/modules/mruby/mrbgems/mruby-time/test/time.rb +152 -148
  176. data/modules/mruby/mrbgems/mruby-toplevel-ext/mrbgem.rake +1 -0
  177. data/modules/mruby/mrbgems/mruby-toplevel-ext/test/toplevel.rb +1 -1
  178. data/modules/mruby/mrblib/array.rb +110 -4
  179. data/modules/mruby/mrblib/class.rb +1 -22
  180. data/modules/mruby/mrblib/compar.rb +10 -30
  181. data/modules/mruby/mrblib/enum.rb +64 -52
  182. data/modules/mruby/mrblib/error.rb +9 -4
  183. data/modules/mruby/mrblib/hash.rb +164 -23
  184. data/modules/mruby/mrblib/kernel.rb +26 -22
  185. data/modules/mruby/mrblib/mrblib.rake +4 -4
  186. data/modules/mruby/mrblib/numeric.rb +22 -9
  187. data/modules/mruby/mrblib/range.rb +24 -2
  188. data/modules/mruby/mrblib/string.rb +15 -3
  189. data/modules/mruby/src/array.c +279 -339
  190. data/modules/mruby/src/backtrace.c +68 -16
  191. data/modules/mruby/src/class.c +539 -379
  192. data/modules/mruby/src/codegen.c +424 -207
  193. data/modules/mruby/src/compar.c +1 -1
  194. data/modules/mruby/src/crc.c +7 -6
  195. data/modules/mruby/src/debug.c +37 -36
  196. data/modules/mruby/src/dump.c +463 -213
  197. data/modules/mruby/src/enum.c +1 -1
  198. data/modules/mruby/src/error.c +91 -92
  199. data/modules/mruby/src/error.h +3 -19
  200. data/modules/mruby/src/etc.c +85 -82
  201. data/modules/mruby/src/gc.c +134 -108
  202. data/modules/mruby/src/hash.c +161 -565
  203. data/modules/mruby/src/init.c +2 -13
  204. data/modules/mruby/src/kernel.c +217 -251
  205. data/modules/mruby/src/load.c +280 -283
  206. data/modules/mruby/src/mrb_throw.h +41 -0
  207. data/modules/mruby/src/mruby_core.rake +57 -7
  208. data/modules/mruby/src/node.h +104 -104
  209. data/modules/mruby/src/numeric.c +221 -208
  210. data/modules/mruby/src/object.c +41 -42
  211. data/modules/mruby/src/opcode.h +2 -160
  212. data/modules/mruby/src/parse.y +3430 -3223
  213. data/modules/mruby/src/pool.c +13 -9
  214. data/modules/mruby/src/print.c +20 -17
  215. data/modules/mruby/src/proc.c +77 -21
  216. data/modules/mruby/src/range.c +55 -45
  217. data/modules/mruby/src/state.c +95 -31
  218. data/modules/mruby/src/string.c +462 -468
  219. data/modules/mruby/src/symbol.c +95 -85
  220. data/modules/mruby/src/variable.c +104 -74
  221. data/modules/mruby/src/version.c +13 -0
  222. data/modules/mruby/src/vm.c +528 -296
  223. data/modules/mruby/tasks/libmruby.rake +9 -5
  224. data/modules/mruby/tasks/mrbgem_spec.rake +130 -26
  225. data/modules/mruby/tasks/mrbgems.rake +21 -11
  226. data/modules/mruby/tasks/mrbgems_test.rake +46 -40
  227. data/modules/mruby/tasks/mruby_build.rake +54 -12
  228. data/modules/mruby/tasks/mruby_build_commands.rake +34 -5
  229. data/modules/mruby/tasks/mruby_build_gem.rake +25 -3
  230. data/modules/mruby/tasks/ruby_ext.rake +11 -2
  231. data/modules/mruby/tasks/toolchains/clang.rake +2 -1
  232. data/modules/mruby/tasks/toolchains/gcc.rake +26 -3
  233. data/modules/mruby/tasks/toolchains/visualcpp.rake +17 -8
  234. data/modules/mruby/test/assert.rb +30 -8
  235. data/modules/mruby/test/bintest.rb +10 -0
  236. data/modules/mruby/test/driver.c +74 -24
  237. data/modules/mruby/test/init_mrbtest.c +21 -2
  238. data/modules/mruby/test/mrbtest.rake +27 -5
  239. data/modules/mruby/test/t/argumenterror.rb +0 -5
  240. data/modules/mruby/test/t/array.rb +23 -7
  241. data/modules/mruby/test/t/bs_block.rb +32 -0
  242. data/modules/mruby/test/t/class.rb +29 -5
  243. data/modules/mruby/test/t/comparable.rb +20 -12
  244. data/modules/mruby/test/t/enumerable.rb +33 -7
  245. data/modules/mruby/test/t/exception.rb +63 -38
  246. data/modules/mruby/test/t/false.rb +2 -4
  247. data/modules/mruby/test/t/float.rb +39 -4
  248. data/modules/mruby/test/t/hash.rb +40 -6
  249. data/modules/mruby/test/t/indexerror.rb +0 -4
  250. data/modules/mruby/test/t/integer.rb +41 -5
  251. data/modules/mruby/test/t/kernel.rb +90 -3
  252. data/modules/mruby/test/t/localjumperror.rb +4 -4
  253. data/modules/mruby/test/t/methods.rb +1 -1
  254. data/modules/mruby/test/t/module.rb +43 -13
  255. data/modules/mruby/test/t/nameerror.rb +0 -4
  256. data/modules/mruby/test/t/nil.rb +5 -0
  257. data/modules/mruby/test/t/nomethoderror.rb +11 -2
  258. data/modules/mruby/test/t/numeric.rb +18 -4
  259. data/modules/mruby/test/t/proc.rb +59 -6
  260. data/modules/mruby/test/t/range.rb +15 -5
  261. data/modules/mruby/test/t/rangeerror.rb +0 -4
  262. data/modules/mruby/test/t/standarderror.rb +0 -4
  263. data/modules/mruby/test/t/string.rb +56 -12
  264. data/modules/mruby/test/t/superclass.rb +46 -0
  265. data/modules/mruby/test/t/symbol.rb +0 -4
  266. data/modules/mruby/test/t/syntax.rb +134 -1
  267. data/modules/mruby/test/t/true.rb +2 -4
  268. data/modules/mruby/test/t/typeerror.rb +0 -5
  269. data/modules/mruby/test/t/unicode.rb +35 -0
  270. data/modules/mruby/tools/mrbc/mrbc.c +9 -12
  271. data/modules/mruby/travis_config.rb +22 -2
  272. metadata +98 -1299
  273. data/modules/emscripten/AUTHORS +0 -117
  274. data/modules/emscripten/CONTRIBUTING.markdown +0 -5
  275. data/modules/emscripten/ChangeLog +0 -468
  276. data/modules/emscripten/LICENSE +0 -94
  277. data/modules/emscripten/README.markdown +0 -14
  278. data/modules/emscripten/cmake/Modules/FindOpenAL.cmake +0 -26
  279. data/modules/emscripten/cmake/Platform/Emscripten.cmake +0 -228
  280. data/modules/emscripten/em++ +0 -12
  281. data/modules/emscripten/em++.bat +0 -2
  282. data/modules/emscripten/em-config +0 -24
  283. data/modules/emscripten/em-config.bat +0 -2
  284. data/modules/emscripten/emar +0 -24
  285. data/modules/emscripten/emar.bat +0 -2
  286. data/modules/emscripten/emcc +0 -2069
  287. data/modules/emscripten/emcc.bat +0 -2
  288. data/modules/emscripten/emcc.py +0 -5
  289. data/modules/emscripten/emconfigure +0 -27
  290. data/modules/emscripten/emconfigure.bat +0 -2
  291. data/modules/emscripten/emlink.py +0 -33
  292. data/modules/emscripten/emmake +0 -29
  293. data/modules/emscripten/emmake.bat +0 -2
  294. data/modules/emscripten/emranlib +0 -9
  295. data/modules/emscripten/emranlib.bat +0 -2
  296. data/modules/emscripten/emrun +0 -1087
  297. data/modules/emscripten/emrun.bat +0 -2
  298. data/modules/emscripten/emscons +0 -20
  299. data/modules/emscripten/emscripten.py +0 -1347
  300. data/modules/emscripten/package.json +0 -7
  301. data/modules/emscripten/patches/README +0 -4
  302. data/modules/emscripten/patches/series +0 -2
  303. data/modules/emscripten/scons-tools/closure.py +0 -28
  304. data/modules/emscripten/scons-tools/emscripten.py +0 -364
  305. data/modules/emscripten/scons-tools/llvm.py +0 -34
  306. data/modules/emscripten/src/analyzer.js +0 -1781
  307. data/modules/emscripten/src/closure-externs.js +0 -110
  308. data/modules/emscripten/src/compiler.html +0 -48
  309. data/modules/emscripten/src/compiler.js +0 -331
  310. data/modules/emscripten/src/compiler_phase.html +0 -33
  311. data/modules/emscripten/src/corruptionCheck.js +0 -98
  312. data/modules/emscripten/src/determinstic.js +0 -20
  313. data/modules/emscripten/src/embind/embind.js +0 -1677
  314. data/modules/emscripten/src/embind/emval.js +0 -284
  315. data/modules/emscripten/src/emrun_postjs.js +0 -20
  316. data/modules/emscripten/src/emrun_prejs.js +0 -5
  317. data/modules/emscripten/src/emscripten-source-map.min.js +0 -31
  318. data/modules/emscripten/src/experimental/allow_loopvars_from_memsetcpy_inasm.diff +0 -97
  319. data/modules/emscripten/src/experimental/batching.diff +0 -44
  320. data/modules/emscripten/src/experimental/functypeopt.diff +0 -113
  321. data/modules/emscripten/src/experimental/multiple_heaps.diff +0 -175
  322. data/modules/emscripten/src/experimental/noncallgraphprofiling.diff +0 -197
  323. data/modules/emscripten/src/experimental/optimize_memcpy_for_ta1.diff +0 -124
  324. data/modules/emscripten/src/experimental/remove__label__s.diff +0 -140
  325. data/modules/emscripten/src/experimental/renderer_cache_hash.diff +0 -99
  326. data/modules/emscripten/src/experimental/sdl_key_forwarding.diff +0 -57
  327. data/modules/emscripten/src/experimental/simplifyGeneratedFunctionsDetection.diff +0 -336
  328. data/modules/emscripten/src/experimental/stringCache.diff +0 -147
  329. data/modules/emscripten/src/fastLong.js +0 -299
  330. data/modules/emscripten/src/gl-matrix.js +0 -1952
  331. data/modules/emscripten/src/headless.js +0 -295
  332. data/modules/emscripten/src/headlessCanvas.js +0 -618
  333. data/modules/emscripten/src/hello_world.js +0 -92
  334. data/modules/emscripten/src/intertyper.js +0 -1228
  335. data/modules/emscripten/src/jsifier.js +0 -1969
  336. data/modules/emscripten/src/library.js +0 -9196
  337. data/modules/emscripten/src/library_browser.js +0 -988
  338. data/modules/emscripten/src/library_egl.js +0 -564
  339. data/modules/emscripten/src/library_fs.js +0 -1619
  340. data/modules/emscripten/src/library_gc.js +0 -236
  341. data/modules/emscripten/src/library_gl.js +0 -5194
  342. data/modules/emscripten/src/library_glfw.js +0 -585
  343. data/modules/emscripten/src/library_glut.js +0 -504
  344. data/modules/emscripten/src/library_idbfs.js +0 -216
  345. data/modules/emscripten/src/library_jansson.js +0 -320
  346. data/modules/emscripten/src/library_memfs.js +0 -303
  347. data/modules/emscripten/src/library_nodefs.js +0 -286
  348. data/modules/emscripten/src/library_openal.js +0 -915
  349. data/modules/emscripten/src/library_path.js +0 -133
  350. data/modules/emscripten/src/library_sdl.js +0 -2728
  351. data/modules/emscripten/src/library_sockfs.js +0 -578
  352. data/modules/emscripten/src/library_strtok_r.c +0 -97
  353. data/modules/emscripten/src/library_tty.js +0 -146
  354. data/modules/emscripten/src/library_uuid.js +0 -140
  355. data/modules/emscripten/src/library_xlib.js +0 -23
  356. data/modules/emscripten/src/long.js +0 -1609
  357. data/modules/emscripten/src/modules.js +0 -543
  358. data/modules/emscripten/src/parseTools.js +0 -2723
  359. data/modules/emscripten/src/postamble.js +0 -239
  360. data/modules/emscripten/src/postamble_sharedlib.js +0 -16
  361. data/modules/emscripten/src/preamble.js +0 -1233
  362. data/modules/emscripten/src/preamble_sharedlib.js +0 -25
  363. data/modules/emscripten/src/proxyClient.js +0 -82
  364. data/modules/emscripten/src/proxyWorker.js +0 -143
  365. data/modules/emscripten/src/relooper/README.markdown +0 -14
  366. data/modules/emscripten/src/relooper/Relooper.cpp +0 -1301
  367. data/modules/emscripten/src/relooper/Relooper.h +0 -257
  368. data/modules/emscripten/src/relooper/doit.sh +0 -70
  369. data/modules/emscripten/src/relooper/emscripten/glue.js +0 -67
  370. data/modules/emscripten/src/relooper/emscripten/test.js +0 -44
  371. data/modules/emscripten/src/relooper/fuzzer.py +0 -131
  372. data/modules/emscripten/src/relooper/ministring.h +0 -35
  373. data/modules/emscripten/src/relooper/paper.pdf +0 -0
  374. data/modules/emscripten/src/relooper/test.cpp +0 -290
  375. data/modules/emscripten/src/relooper/test.txt +0 -317
  376. data/modules/emscripten/src/relooper/test2.c +0 -44
  377. data/modules/emscripten/src/relooper/test2.txt +0 -26
  378. data/modules/emscripten/src/relooper/test3.c +0 -42
  379. data/modules/emscripten/src/relooper/test3.txt +0 -56
  380. data/modules/emscripten/src/relooper/test4.cpp +0 -40
  381. data/modules/emscripten/src/relooper/test4.txt +0 -44
  382. data/modules/emscripten/src/relooper/test5.cpp +0 -40
  383. data/modules/emscripten/src/relooper/test5.txt +0 -56
  384. data/modules/emscripten/src/relooper/test6.cpp +0 -31
  385. data/modules/emscripten/src/relooper/test6.txt +0 -26
  386. data/modules/emscripten/src/relooper/test_dead.cpp +0 -28
  387. data/modules/emscripten/src/relooper/test_dead.txt +0 -9
  388. data/modules/emscripten/src/relooper/test_debug.cpp +0 -30
  389. data/modules/emscripten/src/relooper/test_debug.txt +0 -142
  390. data/modules/emscripten/src/relooper/test_fuzz1.cpp +0 -52
  391. data/modules/emscripten/src/relooper/test_fuzz1.txt +0 -72
  392. data/modules/emscripten/src/relooper/test_fuzz2.cpp +0 -34
  393. data/modules/emscripten/src/relooper/test_fuzz2.txt +0 -30
  394. data/modules/emscripten/src/relooper/test_fuzz3.cpp +0 -36
  395. data/modules/emscripten/src/relooper/test_fuzz3.txt +0 -25
  396. data/modules/emscripten/src/relooper/test_fuzz4.cpp +0 -38
  397. data/modules/emscripten/src/relooper/test_fuzz4.txt +0 -41
  398. data/modules/emscripten/src/relooper/test_fuzz5.cpp +0 -57
  399. data/modules/emscripten/src/relooper/test_fuzz5.txt +0 -86
  400. data/modules/emscripten/src/relooper/test_fuzz6.cpp +0 -322
  401. data/modules/emscripten/src/relooper/test_fuzz6.txt +0 -291
  402. data/modules/emscripten/src/relooper/test_inf.cpp +0 -813
  403. data/modules/emscripten/src/relooper/test_inf.txt +0 -1131
  404. data/modules/emscripten/src/relooper/testit.sh +0 -62
  405. data/modules/emscripten/src/relooper/updateit.sh +0 -17
  406. data/modules/emscripten/src/runtime.js +0 -604
  407. data/modules/emscripten/src/settings.js +0 -476
  408. data/modules/emscripten/src/shell.html +0 -95
  409. data/modules/emscripten/src/shell.js +0 -173
  410. data/modules/emscripten/src/shell_sharedlib.js +0 -29
  411. data/modules/emscripten/src/simd.js +0 -1128
  412. data/modules/emscripten/src/socket.io.js +0 -3870
  413. data/modules/emscripten/src/struct_info.json +0 -1077
  414. data/modules/emscripten/src/utility.js +0 -411
  415. data/modules/emscripten/src/wrtcp.js +0 -821
  416. data/modules/emscripten/system/bin/sdl-config +0 -13
  417. data/modules/emscripten/system/include/AL/al.h +0 -172
  418. data/modules/emscripten/system/include/AL/alc.h +0 -84
  419. data/modules/emscripten/system/include/EGL/egl.h +0 -329
  420. data/modules/emscripten/system/include/EGL/eglext.h +0 -398
  421. data/modules/emscripten/system/include/EGL/eglplatform.h +0 -141
  422. data/modules/emscripten/system/include/GL/freeglut_std.h +0 -628
  423. data/modules/emscripten/system/include/GL/gl.h +0 -2241
  424. data/modules/emscripten/system/include/GL/glew.h +0 -6
  425. data/modules/emscripten/system/include/GL/glext.h +0 -11127
  426. data/modules/emscripten/system/include/GL/glfw.h +0 -518
  427. data/modules/emscripten/system/include/GL/glu.h +0 -353
  428. data/modules/emscripten/system/include/GL/glut.h +0 -21
  429. data/modules/emscripten/system/include/GLES/gl.h +0 -770
  430. data/modules/emscripten/system/include/GLES/glext.h +0 -1278
  431. data/modules/emscripten/system/include/GLES/glplatform.h +0 -30
  432. data/modules/emscripten/system/include/GLES2/gl2.h +0 -621
  433. data/modules/emscripten/system/include/GLES2/gl2ext.h +0 -803
  434. data/modules/emscripten/system/include/GLES2/gl2platform.h +0 -30
  435. data/modules/emscripten/system/include/KHR/khrplatform.h +0 -277
  436. data/modules/emscripten/system/include/SDL/COPYING +0 -19
  437. data/modules/emscripten/system/include/SDL/SDL.h +0 -162
  438. data/modules/emscripten/system/include/SDL/SDL_assert.h +0 -241
  439. data/modules/emscripten/system/include/SDL/SDL_atomic.h +0 -318
  440. data/modules/emscripten/system/include/SDL/SDL_audio.h +0 -509
  441. data/modules/emscripten/system/include/SDL/SDL_blendmode.h +0 -60
  442. data/modules/emscripten/system/include/SDL/SDL_clipboard.h +0 -75
  443. data/modules/emscripten/system/include/SDL/SDL_compat.h +0 -365
  444. data/modules/emscripten/system/include/SDL/SDL_config.h +0 -48
  445. data/modules/emscripten/system/include/SDL/SDL_config.h.in +0 -297
  446. data/modules/emscripten/system/include/SDL/SDL_config_android.h +0 -133
  447. data/modules/emscripten/system/include/SDL/SDL_config_iphoneos.h +0 -148
  448. data/modules/emscripten/system/include/SDL/SDL_config_macosx.h +0 -172
  449. data/modules/emscripten/system/include/SDL/SDL_config_minimal.h +0 -74
  450. data/modules/emscripten/system/include/SDL/SDL_config_nintendods.h +0 -129
  451. data/modules/emscripten/system/include/SDL/SDL_config_pandora.h +0 -125
  452. data/modules/emscripten/system/include/SDL/SDL_config_windows.h +0 -207
  453. data/modules/emscripten/system/include/SDL/SDL_config_wiz.h +0 -119
  454. data/modules/emscripten/system/include/SDL/SDL_copying.h +0 -20
  455. data/modules/emscripten/system/include/SDL/SDL_cpuinfo.h +0 -150
  456. data/modules/emscripten/system/include/SDL/SDL_endian.h +0 -248
  457. data/modules/emscripten/system/include/SDL/SDL_error.h +0 -77
  458. data/modules/emscripten/system/include/SDL/SDL_events.h +0 -640
  459. data/modules/emscripten/system/include/SDL/SDL_gesture.h +0 -91
  460. data/modules/emscripten/system/include/SDL/SDL_gfxPrimitives.h +0 -246
  461. data/modules/emscripten/system/include/SDL/SDL_haptic.h +0 -1200
  462. data/modules/emscripten/system/include/SDL/SDL_hints.h +0 -206
  463. data/modules/emscripten/system/include/SDL/SDL_image.h +0 -138
  464. data/modules/emscripten/system/include/SDL/SDL_input.h +0 -87
  465. data/modules/emscripten/system/include/SDL/SDL_joystick.h +0 -208
  466. data/modules/emscripten/system/include/SDL/SDL_keyboard.h +0 -169
  467. data/modules/emscripten/system/include/SDL/SDL_keycode.h +0 -344
  468. data/modules/emscripten/system/include/SDL/SDL_loadso.h +0 -85
  469. data/modules/emscripten/system/include/SDL/SDL_log.h +0 -211
  470. data/modules/emscripten/system/include/SDL/SDL_main.h +0 -98
  471. data/modules/emscripten/system/include/SDL/SDL_mixer.h +0 -634
  472. data/modules/emscripten/system/include/SDL/SDL_mouse.h +0 -213
  473. data/modules/emscripten/system/include/SDL/SDL_mutex.h +0 -248
  474. data/modules/emscripten/system/include/SDL/SDL_name.h +0 -11
  475. data/modules/emscripten/system/include/SDL/SDL_opengl.h +0 -11116
  476. data/modules/emscripten/system/include/SDL/SDL_opengles.h +0 -38
  477. data/modules/emscripten/system/include/SDL/SDL_opengles2.h +0 -38
  478. data/modules/emscripten/system/include/SDL/SDL_pixels.h +0 -423
  479. data/modules/emscripten/system/include/SDL/SDL_platform.h +0 -160
  480. data/modules/emscripten/system/include/SDL/SDL_power.h +0 -79
  481. data/modules/emscripten/system/include/SDL/SDL_quit.h +0 -58
  482. data/modules/emscripten/system/include/SDL/SDL_rect.h +0 -136
  483. data/modules/emscripten/system/include/SDL/SDL_render.h +0 -615
  484. data/modules/emscripten/system/include/SDL/SDL_revision.h +0 -2
  485. data/modules/emscripten/system/include/SDL/SDL_revision.h.orig +0 -2
  486. data/modules/emscripten/system/include/SDL/SDL_rotozoom.h +0 -123
  487. data/modules/emscripten/system/include/SDL/SDL_rwops.h +0 -220
  488. data/modules/emscripten/system/include/SDL/SDL_scancode.h +0 -398
  489. data/modules/emscripten/system/include/SDL/SDL_shape.h +0 -147
  490. data/modules/emscripten/system/include/SDL/SDL_stdinc.h +0 -764
  491. data/modules/emscripten/system/include/SDL/SDL_surface.h +0 -499
  492. data/modules/emscripten/system/include/SDL/SDL_syswm.h +0 -241
  493. data/modules/emscripten/system/include/SDL/SDL_thread.h +0 -182
  494. data/modules/emscripten/system/include/SDL/SDL_timer.h +0 -108
  495. data/modules/emscripten/system/include/SDL/SDL_touch.h +0 -124
  496. data/modules/emscripten/system/include/SDL/SDL_ttf.h +0 -249
  497. data/modules/emscripten/system/include/SDL/SDL_types.h +0 -29
  498. data/modules/emscripten/system/include/SDL/SDL_version.h +0 -166
  499. data/modules/emscripten/system/include/SDL/SDL_video.h +0 -820
  500. data/modules/emscripten/system/include/SDL/begin_code.h +0 -135
  501. data/modules/emscripten/system/include/SDL/close_code.h +0 -37
  502. data/modules/emscripten/system/include/X11/X.h +0 -717
  503. data/modules/emscripten/system/include/X11/Xatom.h +0 -79
  504. data/modules/emscripten/system/include/X11/Xfuncproto.h +0 -127
  505. data/modules/emscripten/system/include/X11/Xlib.h +0 -4023
  506. data/modules/emscripten/system/include/X11/Xosdefs.h +0 -116
  507. data/modules/emscripten/system/include/X11/Xutil.h +0 -826
  508. data/modules/emscripten/system/include/X11/keysym.h +0 -73
  509. data/modules/emscripten/system/include/X11/keysymdef.h +0 -2389
  510. data/modules/emscripten/system/include/compat/ctype.h +0 -34
  511. data/modules/emscripten/system/include/compat/malloc.h +0 -48
  512. data/modules/emscripten/system/include/compat/math.h +0 -14
  513. data/modules/emscripten/system/include/compat/netdb.h +0 -22
  514. data/modules/emscripten/system/include/compat/stdarg.h +0 -16
  515. data/modules/emscripten/system/include/compat/stdlib.h +0 -16
  516. data/modules/emscripten/system/include/compat/string.h +0 -17
  517. data/modules/emscripten/system/include/compat/sys/socketvar.h +0 -14
  518. data/modules/emscripten/system/include/compat/sys/stat.h +0 -20
  519. data/modules/emscripten/system/include/compat/sys/timeb.h +0 -35
  520. data/modules/emscripten/system/include/compat/time.h +0 -18
  521. data/modules/emscripten/system/include/compat/unistd.h +0 -16
  522. data/modules/emscripten/system/include/compat/wchar.h +0 -23
  523. data/modules/emscripten/system/include/compat/wctype.h +0 -23
  524. data/modules/emscripten/system/include/compat/xlocale.h +0 -19
  525. data/modules/emscripten/system/include/emscripten/bind.h +0 -1210
  526. data/modules/emscripten/system/include/emscripten/emmintrin.h +0 -87
  527. data/modules/emscripten/system/include/emscripten/emscripten.h +0 -519
  528. data/modules/emscripten/system/include/emscripten/val.h +0 -311
  529. data/modules/emscripten/system/include/emscripten/vector.h +0 -34
  530. data/modules/emscripten/system/include/emscripten/wire.h +0 -393
  531. data/modules/emscripten/system/include/emscripten/xmmintrin.h +0 -131
  532. data/modules/emscripten/system/include/execinfo.h +0 -44
  533. data/modules/emscripten/system/include/gc.h +0 -70
  534. data/modules/emscripten/system/include/gfx/png.h +0 -3798
  535. data/modules/emscripten/system/include/gfx/pngconf.h +0 -1665
  536. data/modules/emscripten/system/include/gfx/tiff.h +0 -654
  537. data/modules/emscripten/system/include/gfx/tiffconf.h +0 -104
  538. data/modules/emscripten/system/include/gfx/tiffio.h +0 -526
  539. data/modules/emscripten/system/include/gfx/tiffvers.h +0 -9
  540. data/modules/emscripten/system/include/jansson.h +0 -323
  541. data/modules/emscripten/system/include/jansson_config.h +0 -54
  542. data/modules/emscripten/system/include/libc/aio.h +0 -69
  543. data/modules/emscripten/system/include/libc/alloca.h +0 -21
  544. data/modules/emscripten/system/include/libc/ar.h +0 -25
  545. data/modules/emscripten/system/include/libc/arpa/ftp.h +0 -35
  546. data/modules/emscripten/system/include/libc/arpa/inet.h +0 -36
  547. data/modules/emscripten/system/include/libc/arpa/nameser.h +0 -467
  548. data/modules/emscripten/system/include/libc/arpa/nameser_compat.h +0 -2
  549. data/modules/emscripten/system/include/libc/arpa/telnet.h +0 -251
  550. data/modules/emscripten/system/include/libc/arpa/tftp.h +0 -31
  551. data/modules/emscripten/system/include/libc/assert.h +0 -19
  552. data/modules/emscripten/system/include/libc/bits/alltypes.h +0 -397
  553. data/modules/emscripten/system/include/libc/bits/endian.h +0 -1
  554. data/modules/emscripten/system/include/libc/bits/errno.h +0 -134
  555. data/modules/emscripten/system/include/libc/bits/fcntl.h +0 -38
  556. data/modules/emscripten/system/include/libc/bits/fenv.h +0 -34
  557. data/modules/emscripten/system/include/libc/bits/float.h +0 -17
  558. data/modules/emscripten/system/include/libc/bits/io.h +0 -0
  559. data/modules/emscripten/system/include/libc/bits/ioctl.h +0 -197
  560. data/modules/emscripten/system/include/libc/bits/ipc.h +0 -14
  561. data/modules/emscripten/system/include/libc/bits/limits.h +0 -8
  562. data/modules/emscripten/system/include/libc/bits/mman.h +0 -62
  563. data/modules/emscripten/system/include/libc/bits/msg.h +0 -16
  564. data/modules/emscripten/system/include/libc/bits/posix.h +0 -2
  565. data/modules/emscripten/system/include/libc/bits/reg.h +0 -19
  566. data/modules/emscripten/system/include/libc/bits/setjmp.h +0 -1
  567. data/modules/emscripten/system/include/libc/bits/shm.h +0 -18
  568. data/modules/emscripten/system/include/libc/bits/signal.h +0 -112
  569. data/modules/emscripten/system/include/libc/bits/socket.h +0 -17
  570. data/modules/emscripten/system/include/libc/bits/stat.h +0 -22
  571. data/modules/emscripten/system/include/libc/bits/statfs.h +0 -7
  572. data/modules/emscripten/system/include/libc/bits/stdarg.h +0 -4
  573. data/modules/emscripten/system/include/libc/bits/stdint.h +0 -20
  574. data/modules/emscripten/system/include/libc/bits/syscall.h +0 -696
  575. data/modules/emscripten/system/include/libc/bits/termios.h +0 -160
  576. data/modules/emscripten/system/include/libc/bits/user.h +0 -48
  577. data/modules/emscripten/system/include/libc/byteswap.h +0 -26
  578. data/modules/emscripten/system/include/libc/complex.h +0 -125
  579. data/modules/emscripten/system/include/libc/cpio.h +0 -29
  580. data/modules/emscripten/system/include/libc/crypt.h +0 -20
  581. data/modules/emscripten/system/include/libc/ctype.h +0 -67
  582. data/modules/emscripten/system/include/libc/dirent.h +0 -79
  583. data/modules/emscripten/system/include/libc/dlfcn.h +0 -42
  584. data/modules/emscripten/system/include/libc/elf.h +0 -2555
  585. data/modules/emscripten/system/include/libc/endian.h +0 -82
  586. data/modules/emscripten/system/include/libc/err.h +0 -25
  587. data/modules/emscripten/system/include/libc/errno.h +0 -27
  588. data/modules/emscripten/system/include/libc/fcntl.h +0 -175
  589. data/modules/emscripten/system/include/libc/features.h +0 -32
  590. data/modules/emscripten/system/include/libc/fenv.h +0 -28
  591. data/modules/emscripten/system/include/libc/float.h +0 -34
  592. data/modules/emscripten/system/include/libc/fnmatch.h +0 -29
  593. data/modules/emscripten/system/include/libc/ftw.h +0 -42
  594. data/modules/emscripten/system/include/libc/getopt.h +0 -31
  595. data/modules/emscripten/system/include/libc/glob.h +0 -48
  596. data/modules/emscripten/system/include/libc/grp.h +0 -52
  597. data/modules/emscripten/system/include/libc/iconv.h +0 -24
  598. data/modules/emscripten/system/include/libc/ifaddrs.h +0 -35
  599. data/modules/emscripten/system/include/libc/inttypes.h +0 -227
  600. data/modules/emscripten/system/include/libc/iso646.h +0 -20
  601. data/modules/emscripten/system/include/libc/langinfo.h +0 -88
  602. data/modules/emscripten/system/include/libc/lastlog.h +0 -1
  603. data/modules/emscripten/system/include/libc/libgen.h +0 -15
  604. data/modules/emscripten/system/include/libc/libintl.h +0 -25
  605. data/modules/emscripten/system/include/libc/limits.h +0 -146
  606. data/modules/emscripten/system/include/libc/link.h +0 -54
  607. data/modules/emscripten/system/include/libc/locale.h +0 -82
  608. data/modules/emscripten/system/include/libc/malloc.h +0 -0
  609. data/modules/emscripten/system/include/libc/math.h +0 -422
  610. data/modules/emscripten/system/include/libc/memory.h +0 -1
  611. data/modules/emscripten/system/include/libc/mntent.h +0 -44
  612. data/modules/emscripten/system/include/libc/monetary.h +0 -23
  613. data/modules/emscripten/system/include/libc/mqueue.h +0 -36
  614. data/modules/emscripten/system/include/libc/net/ethernet.h +0 -55
  615. data/modules/emscripten/system/include/libc/net/if.h +0 -135
  616. data/modules/emscripten/system/include/libc/net/if_arp.h +0 -133
  617. data/modules/emscripten/system/include/libc/net/route.h +0 -124
  618. data/modules/emscripten/system/include/libc/netdb.h +0 -161
  619. data/modules/emscripten/system/include/libc/netinet/ether.h +0 -14
  620. data/modules/emscripten/system/include/libc/netinet/icmp6.h +0 -305
  621. data/modules/emscripten/system/include/libc/netinet/if_ether.h +0 -126
  622. data/modules/emscripten/system/include/libc/netinet/in.h +0 -336
  623. data/modules/emscripten/system/include/libc/netinet/in_systm.h +0 -9
  624. data/modules/emscripten/system/include/libc/netinet/ip.h +0 -186
  625. data/modules/emscripten/system/include/libc/netinet/ip6.h +0 -142
  626. data/modules/emscripten/system/include/libc/netinet/ip_icmp.h +0 -192
  627. data/modules/emscripten/system/include/libc/netinet/tcp.h +0 -71
  628. data/modules/emscripten/system/include/libc/netinet/udp.h +0 -35
  629. data/modules/emscripten/system/include/libc/netpacket/packet.h +0 -44
  630. data/modules/emscripten/system/include/libc/nl_types.h +0 -22
  631. data/modules/emscripten/system/include/libc/paths.h +0 -32
  632. data/modules/emscripten/system/include/libc/poll.h +0 -46
  633. data/modules/emscripten/system/include/libc/pthread.h +0 -222
  634. data/modules/emscripten/system/include/libc/pty.h +0 -18
  635. data/modules/emscripten/system/include/libc/pwd.h +0 -49
  636. data/modules/emscripten/system/include/libc/readme.txt +0 -3
  637. data/modules/emscripten/system/include/libc/regex.h +0 -62
  638. data/modules/emscripten/system/include/libc/resolv.h +0 -144
  639. data/modules/emscripten/system/include/libc/sched.h +0 -132
  640. data/modules/emscripten/system/include/libc/search.h +0 -51
  641. data/modules/emscripten/system/include/libc/semaphore.h +0 -35
  642. data/modules/emscripten/system/include/libc/setjmp.h +0 -42
  643. data/modules/emscripten/system/include/libc/shadow.h +0 -44
  644. data/modules/emscripten/system/include/libc/signal.h +0 -255
  645. data/modules/emscripten/system/include/libc/spawn.h +0 -74
  646. data/modules/emscripten/system/include/libc/stdalign.h +0 -15
  647. data/modules/emscripten/system/include/libc/stdarg.h +0 -25
  648. data/modules/emscripten/system/include/libc/stdbool.h +0 -14
  649. data/modules/emscripten/system/include/libc/stddef.h +0 -18
  650. data/modules/emscripten/system/include/libc/stdint.h +0 -117
  651. data/modules/emscripten/system/include/libc/stdio.h +0 -199
  652. data/modules/emscripten/system/include/libc/stdio_ext.h +0 -34
  653. data/modules/emscripten/system/include/libc/stdlib.h +0 -171
  654. data/modules/emscripten/system/include/libc/stdnoreturn.h +0 -5
  655. data/modules/emscripten/system/include/libc/string.h +0 -102
  656. data/modules/emscripten/system/include/libc/strings.h +0 -35
  657. data/modules/emscripten/system/include/libc/stropts.h +0 -139
  658. data/modules/emscripten/system/include/libc/sys/acct.h +0 -75
  659. data/modules/emscripten/system/include/libc/sys/cachectl.h +0 -22
  660. data/modules/emscripten/system/include/libc/sys/dir.h +0 -2
  661. data/modules/emscripten/system/include/libc/sys/epoll.h +0 -67
  662. data/modules/emscripten/system/include/libc/sys/errno.h +0 -2
  663. data/modules/emscripten/system/include/libc/sys/eventfd.h +0 -26
  664. data/modules/emscripten/system/include/libc/sys/fcntl.h +0 -2
  665. data/modules/emscripten/system/include/libc/sys/file.h +0 -21
  666. data/modules/emscripten/system/include/libc/sys/fsuid.h +0 -20
  667. data/modules/emscripten/system/include/libc/sys/inotify.h +0 -57
  668. data/modules/emscripten/system/include/libc/sys/io.h +0 -17
  669. data/modules/emscripten/system/include/libc/sys/ioctl.h +0 -14
  670. data/modules/emscripten/system/include/libc/sys/ipc.h +0 -42
  671. data/modules/emscripten/system/include/libc/sys/klog.h +0 -14
  672. data/modules/emscripten/system/include/libc/sys/mman.h +0 -55
  673. data/modules/emscripten/system/include/libc/sys/mount.h +0 -72
  674. data/modules/emscripten/system/include/libc/sys/msg.h +0 -52
  675. data/modules/emscripten/system/include/libc/sys/mtio.h +0 -188
  676. data/modules/emscripten/system/include/libc/sys/param.h +0 -35
  677. data/modules/emscripten/system/include/libc/sys/personality.h +0 -46
  678. data/modules/emscripten/system/include/libc/sys/poll.h +0 -2
  679. data/modules/emscripten/system/include/libc/sys/prctl.h +0 -101
  680. data/modules/emscripten/system/include/libc/sys/procfs.h +0 -65
  681. data/modules/emscripten/system/include/libc/sys/ptrace.h +0 -96
  682. data/modules/emscripten/system/include/libc/sys/reboot.h +0 -20
  683. data/modules/emscripten/system/include/libc/sys/reg.h +0 -9
  684. data/modules/emscripten/system/include/libc/sys/resource.h +0 -103
  685. data/modules/emscripten/system/include/libc/sys/select.h +0 -42
  686. data/modules/emscripten/system/include/libc/sys/sem.h +0 -82
  687. data/modules/emscripten/system/include/libc/sys/sendfile.h +0 -22
  688. data/modules/emscripten/system/include/libc/sys/shm.h +0 -61
  689. data/modules/emscripten/system/include/libc/sys/signal.h +0 -2
  690. data/modules/emscripten/system/include/libc/sys/signalfd.h +0 -44
  691. data/modules/emscripten/system/include/libc/sys/socket.h +0 -299
  692. data/modules/emscripten/system/include/libc/sys/stat.h +0 -114
  693. data/modules/emscripten/system/include/libc/sys/statfs.h +0 -32
  694. data/modules/emscripten/system/include/libc/sys/statvfs.h +0 -57
  695. data/modules/emscripten/system/include/libc/sys/stropts.h +0 -1
  696. data/modules/emscripten/system/include/libc/sys/swap.h +0 -21
  697. data/modules/emscripten/system/include/libc/sys/syscall.h +0 -6
  698. data/modules/emscripten/system/include/libc/sys/sysctl.h +0 -17
  699. data/modules/emscripten/system/include/libc/sys/sysinfo.h +0 -36
  700. data/modules/emscripten/system/include/libc/sys/syslog.h +0 -1
  701. data/modules/emscripten/system/include/libc/sys/sysmacros.h +0 -15
  702. data/modules/emscripten/system/include/libc/sys/termios.h +0 -2
  703. data/modules/emscripten/system/include/libc/sys/time.h +0 -57
  704. data/modules/emscripten/system/include/libc/sys/timerfd.h +0 -24
  705. data/modules/emscripten/system/include/libc/sys/times.h +0 -26
  706. data/modules/emscripten/system/include/libc/sys/timex.h +0 -98
  707. data/modules/emscripten/system/include/libc/sys/ttydefaults.h +0 -39
  708. data/modules/emscripten/system/include/libc/sys/types.h +0 -91
  709. data/modules/emscripten/system/include/libc/sys/ucontext.h +0 -1
  710. data/modules/emscripten/system/include/libc/sys/uio.h +0 -48
  711. data/modules/emscripten/system/include/libc/sys/un.h +0 -32
  712. data/modules/emscripten/system/include/libc/sys/user.h +0 -16
  713. data/modules/emscripten/system/include/libc/sys/utsname.h +0 -30
  714. data/modules/emscripten/system/include/libc/sys/vfs.h +0 -1
  715. data/modules/emscripten/system/include/libc/sys/wait.h +0 -55
  716. data/modules/emscripten/system/include/libc/sys/xattr.h +0 -30
  717. data/modules/emscripten/system/include/libc/syscall.h +0 -1
  718. data/modules/emscripten/system/include/libc/sysexits.h +0 -21
  719. data/modules/emscripten/system/include/libc/syslog.h +0 -104
  720. data/modules/emscripten/system/include/libc/tar.h +0 -33
  721. data/modules/emscripten/system/include/libc/termios.h +0 -46
  722. data/modules/emscripten/system/include/libc/tgmath.h +0 -270
  723. data/modules/emscripten/system/include/libc/time.h +0 -132
  724. data/modules/emscripten/system/include/libc/ucontext.h +0 -25
  725. data/modules/emscripten/system/include/libc/ulimit.h +0 -17
  726. data/modules/emscripten/system/include/libc/unistd.h +0 -519
  727. data/modules/emscripten/system/include/libc/utime.h +0 -24
  728. data/modules/emscripten/system/include/libc/utmp.h +0 -47
  729. data/modules/emscripten/system/include/libc/utmpx.h +0 -58
  730. data/modules/emscripten/system/include/libc/values.h +0 -39
  731. data/modules/emscripten/system/include/libc/wchar.h +0 -183
  732. data/modules/emscripten/system/include/libc/wctype.h +0 -77
  733. data/modules/emscripten/system/include/libc/wordexp.h +0 -42
  734. data/modules/emscripten/system/include/libcxx/CREDITS.TXT +0 -123
  735. data/modules/emscripten/system/include/libcxx/LICENSE.txt +0 -76
  736. data/modules/emscripten/system/include/libcxx/__bit_reference +0 -1287
  737. data/modules/emscripten/system/include/libcxx/__config +0 -610
  738. data/modules/emscripten/system/include/libcxx/__debug +0 -218
  739. data/modules/emscripten/system/include/libcxx/__functional_03 +0 -2130
  740. data/modules/emscripten/system/include/libcxx/__functional_base +0 -615
  741. data/modules/emscripten/system/include/libcxx/__functional_base_03 +0 -1087
  742. data/modules/emscripten/system/include/libcxx/__hash_table +0 -2457
  743. data/modules/emscripten/system/include/libcxx/__locale +0 -1445
  744. data/modules/emscripten/system/include/libcxx/__mutex_base +0 -407
  745. data/modules/emscripten/system/include/libcxx/__split_buffer +0 -654
  746. data/modules/emscripten/system/include/libcxx/__sso_allocator +0 -77
  747. data/modules/emscripten/system/include/libcxx/__std_stream +0 -359
  748. data/modules/emscripten/system/include/libcxx/__tree +0 -2309
  749. data/modules/emscripten/system/include/libcxx/__tuple +0 -305
  750. data/modules/emscripten/system/include/libcxx/__tuple_03 +0 -27
  751. data/modules/emscripten/system/include/libcxx/__undef_min_max +0 -27
  752. data/modules/emscripten/system/include/libcxx/algorithm +0 -5679
  753. data/modules/emscripten/system/include/libcxx/array +0 -342
  754. data/modules/emscripten/system/include/libcxx/atomic +0 -1531
  755. data/modules/emscripten/system/include/libcxx/bitset +0 -1081
  756. data/modules/emscripten/system/include/libcxx/cassert +0 -25
  757. data/modules/emscripten/system/include/libcxx/ccomplex +0 -29
  758. data/modules/emscripten/system/include/libcxx/cctype +0 -164
  759. data/modules/emscripten/system/include/libcxx/cerrno +0 -393
  760. data/modules/emscripten/system/include/libcxx/cfenv +0 -82
  761. data/modules/emscripten/system/include/libcxx/cfloat +0 -78
  762. data/modules/emscripten/system/include/libcxx/chrono +0 -1027
  763. data/modules/emscripten/system/include/libcxx/cinttypes +0 -259
  764. data/modules/emscripten/system/include/libcxx/ciso646 +0 -25
  765. data/modules/emscripten/system/include/libcxx/climits +0 -48
  766. data/modules/emscripten/system/include/libcxx/clocale +0 -53
  767. data/modules/emscripten/system/include/libcxx/cmath +0 -1690
  768. data/modules/emscripten/system/include/libcxx/codecvt +0 -550
  769. data/modules/emscripten/system/include/libcxx/complex +0 -1567
  770. data/modules/emscripten/system/include/libcxx/complex.h +0 -35
  771. data/modules/emscripten/system/include/libcxx/condition_variable +0 -256
  772. data/modules/emscripten/system/include/libcxx/csetjmp +0 -52
  773. data/modules/emscripten/system/include/libcxx/csignal +0 -58
  774. data/modules/emscripten/system/include/libcxx/cstdarg +0 -48
  775. data/modules/emscripten/system/include/libcxx/cstdbool +0 -32
  776. data/modules/emscripten/system/include/libcxx/cstddef +0 -103
  777. data/modules/emscripten/system/include/libcxx/cstdint +0 -191
  778. data/modules/emscripten/system/include/libcxx/cstdio +0 -182
  779. data/modules/emscripten/system/include/libcxx/cstdlib +0 -172
  780. data/modules/emscripten/system/include/libcxx/cstring +0 -112
  781. data/modules/emscripten/system/include/libcxx/ctgmath +0 -29
  782. data/modules/emscripten/system/include/libcxx/ctime +0 -72
  783. data/modules/emscripten/system/include/libcxx/cwchar +0 -217
  784. data/modules/emscripten/system/include/libcxx/cwctype +0 -213
  785. data/modules/emscripten/system/include/libcxx/deque +0 -2873
  786. data/modules/emscripten/system/include/libcxx/dynarray +0 -311
  787. data/modules/emscripten/system/include/libcxx/exception +0 -250
  788. data/modules/emscripten/system/include/libcxx/ext/__hash +0 -46
  789. data/modules/emscripten/system/include/libcxx/ext/hash_map +0 -1007
  790. data/modules/emscripten/system/include/libcxx/ext/hash_set +0 -661
  791. data/modules/emscripten/system/include/libcxx/forward_list +0 -1663
  792. data/modules/emscripten/system/include/libcxx/fstream +0 -1431
  793. data/modules/emscripten/system/include/libcxx/functional +0 -2418
  794. data/modules/emscripten/system/include/libcxx/future +0 -2615
  795. data/modules/emscripten/system/include/libcxx/initializer_list +0 -118
  796. data/modules/emscripten/system/include/libcxx/iomanip +0 -651
  797. data/modules/emscripten/system/include/libcxx/ios +0 -1023
  798. data/modules/emscripten/system/include/libcxx/iosfwd +0 -194
  799. data/modules/emscripten/system/include/libcxx/iostream +0 -60
  800. data/modules/emscripten/system/include/libcxx/istream +0 -1716
  801. data/modules/emscripten/system/include/libcxx/iterator +0 -1568
  802. data/modules/emscripten/system/include/libcxx/limits +0 -813
  803. data/modules/emscripten/system/include/libcxx/list +0 -2355
  804. data/modules/emscripten/system/include/libcxx/locale +0 -4465
  805. data/modules/emscripten/system/include/libcxx/map +0 -2045
  806. data/modules/emscripten/system/include/libcxx/memory +0 -5448
  807. data/modules/emscripten/system/include/libcxx/mutex +0 -566
  808. data/modules/emscripten/system/include/libcxx/new +0 -146
  809. data/modules/emscripten/system/include/libcxx/numeric +0 -197
  810. data/modules/emscripten/system/include/libcxx/optional +0 -697
  811. data/modules/emscripten/system/include/libcxx/ostream +0 -1295
  812. data/modules/emscripten/system/include/libcxx/queue +0 -717
  813. data/modules/emscripten/system/include/libcxx/random +0 -6725
  814. data/modules/emscripten/system/include/libcxx/ratio +0 -487
  815. data/modules/emscripten/system/include/libcxx/readme.txt +0 -1
  816. data/modules/emscripten/system/include/libcxx/regex +0 -6487
  817. data/modules/emscripten/system/include/libcxx/scoped_allocator +0 -578
  818. data/modules/emscripten/system/include/libcxx/set +0 -1189
  819. data/modules/emscripten/system/include/libcxx/shared_mutex +0 -419
  820. data/modules/emscripten/system/include/libcxx/sstream +0 -972
  821. data/modules/emscripten/system/include/libcxx/stack +0 -292
  822. data/modules/emscripten/system/include/libcxx/stdexcept +0 -162
  823. data/modules/emscripten/system/include/libcxx/streambuf +0 -564
  824. data/modules/emscripten/system/include/libcxx/string +0 -4198
  825. data/modules/emscripten/system/include/libcxx/strstream +0 -400
  826. data/modules/emscripten/system/include/libcxx/support/ibm/limits.h +0 -99
  827. data/modules/emscripten/system/include/libcxx/support/ibm/support.h +0 -54
  828. data/modules/emscripten/system/include/libcxx/support/ibm/xlocale.h +0 -326
  829. data/modules/emscripten/system/include/libcxx/support/solaris/floatingpoint.h +0 -5
  830. data/modules/emscripten/system/include/libcxx/support/solaris/wchar.h +0 -38
  831. data/modules/emscripten/system/include/libcxx/support/solaris/xlocale.h +0 -146
  832. data/modules/emscripten/system/include/libcxx/support/win32/limits_win32.h +0 -79
  833. data/modules/emscripten/system/include/libcxx/support/win32/locale_win32.h +0 -129
  834. data/modules/emscripten/system/include/libcxx/support/win32/math_win32.h +0 -115
  835. data/modules/emscripten/system/include/libcxx/support/win32/support.h +0 -119
  836. data/modules/emscripten/system/include/libcxx/system_error +0 -642
  837. data/modules/emscripten/system/include/libcxx/tgmath.h +0 -29
  838. data/modules/emscripten/system/include/libcxx/thread +0 -458
  839. data/modules/emscripten/system/include/libcxx/tuple +0 -1102
  840. data/modules/emscripten/system/include/libcxx/type_traits +0 -3292
  841. data/modules/emscripten/system/include/libcxx/typeindex +0 -103
  842. data/modules/emscripten/system/include/libcxx/typeinfo +0 -124
  843. data/modules/emscripten/system/include/libcxx/unordered_map +0 -2078
  844. data/modules/emscripten/system/include/libcxx/unordered_set +0 -1379
  845. data/modules/emscripten/system/include/libcxx/utility +0 -768
  846. data/modules/emscripten/system/include/libcxx/valarray +0 -4779
  847. data/modules/emscripten/system/include/libcxx/vector +0 -3246
  848. data/modules/emscripten/system/include/unwind.h +0 -154
  849. data/modules/emscripten/system/include/uuid/uuid.h +0 -35
  850. data/modules/emscripten/system/include/zconf.h +0 -428
  851. data/modules/emscripten/system/include/zlib.h +0 -1613
  852. data/modules/emscripten/system/lib/compiler-rt/LICENSE.TXT +0 -97
  853. data/modules/emscripten/system/lib/compiler-rt/divdi3.c +0 -47
  854. data/modules/emscripten/system/lib/compiler-rt/int_endianness.h +0 -116
  855. data/modules/emscripten/system/lib/compiler-rt/int_lib.h +0 -46
  856. data/modules/emscripten/system/lib/compiler-rt/int_math.h +0 -67
  857. data/modules/emscripten/system/lib/compiler-rt/int_types.h +0 -140
  858. data/modules/emscripten/system/lib/compiler-rt/int_util.h +0 -29
  859. data/modules/emscripten/system/lib/compiler-rt/muldi3.c +0 -56
  860. data/modules/emscripten/system/lib/compiler-rt/readme.txt +0 -20
  861. data/modules/emscripten/system/lib/compiler-rt/udivdi3.c +0 -36
  862. data/modules/emscripten/system/lib/compiler-rt/udivmoddi4.c +0 -251
  863. data/modules/emscripten/system/lib/debugging.cpp +0 -24
  864. data/modules/emscripten/system/lib/dlmalloc.c +0 -6297
  865. data/modules/emscripten/system/lib/embind/bind.cpp +0 -63
  866. data/modules/emscripten/system/lib/libc/gen/err.c +0 -49
  867. data/modules/emscripten/system/lib/libc/gen/errx.c +0 -49
  868. data/modules/emscripten/system/lib/libc/gen/verr.c +0 -58
  869. data/modules/emscripten/system/lib/libc/gen/verrx.c +0 -51
  870. data/modules/emscripten/system/lib/libc/gen/vwarn.c +0 -55
  871. data/modules/emscripten/system/lib/libc/gen/vwarnx.c +0 -48
  872. data/modules/emscripten/system/lib/libc/gen/warn.c +0 -49
  873. data/modules/emscripten/system/lib/libc/gen/warnx.c +0 -49
  874. data/modules/emscripten/system/lib/libc/musl/COPYRIGHT +0 -92
  875. data/modules/emscripten/system/lib/libc/musl/readme.txt +0 -9
  876. data/modules/emscripten/system/lib/libc/musl/src/ctype/alpha.h +0 -125
  877. data/modules/emscripten/system/lib/libc/musl/src/ctype/iswalnum.c +0 -7
  878. data/modules/emscripten/system/lib/libc/musl/src/ctype/iswalpha.c +0 -14
  879. data/modules/emscripten/system/lib/libc/musl/src/ctype/iswblank.c +0 -8
  880. data/modules/emscripten/system/lib/libc/musl/src/ctype/iswcntrl.c +0 -10
  881. data/modules/emscripten/system/lib/libc/musl/src/ctype/iswctype.c +0 -63
  882. data/modules/emscripten/system/lib/libc/musl/src/ctype/iswdigit.c +0 -9
  883. data/modules/emscripten/system/lib/libc/musl/src/ctype/iswgraph.c +0 -7
  884. data/modules/emscripten/system/lib/libc/musl/src/ctype/iswlower.c +0 -6
  885. data/modules/emscripten/system/lib/libc/musl/src/ctype/iswprint.c +0 -19
  886. data/modules/emscripten/system/lib/libc/musl/src/ctype/iswpunct.c +0 -12
  887. data/modules/emscripten/system/lib/libc/musl/src/ctype/iswspace.c +0 -19
  888. data/modules/emscripten/system/lib/libc/musl/src/ctype/iswupper.c +0 -6
  889. data/modules/emscripten/system/lib/libc/musl/src/ctype/iswxdigit.c +0 -7
  890. data/modules/emscripten/system/lib/libc/musl/src/ctype/nonspacing.h +0 -62
  891. data/modules/emscripten/system/lib/libc/musl/src/ctype/punct.h +0 -109
  892. data/modules/emscripten/system/lib/libc/musl/src/ctype/towctrans.c +0 -268
  893. data/modules/emscripten/system/lib/libc/musl/src/ctype/wcswidth.c +0 -8
  894. data/modules/emscripten/system/lib/libc/musl/src/ctype/wctrans.c +0 -16
  895. data/modules/emscripten/system/lib/libc/musl/src/ctype/wcwidth.c +0 -29
  896. data/modules/emscripten/system/lib/libc/musl/src/ctype/wide.h +0 -42
  897. data/modules/emscripten/system/lib/libc/musl/src/internal/libc.c +0 -22
  898. data/modules/emscripten/system/lib/libc/musl/src/internal/libc.h +0 -71
  899. data/modules/emscripten/system/lib/libc/musl/src/internal/locale_impl.h +0 -5
  900. data/modules/emscripten/system/lib/libc/musl/src/internal/stdio_impl.h +0 -92
  901. data/modules/emscripten/system/lib/libc/musl/src/locale/big5.h +0 -1085
  902. data/modules/emscripten/system/lib/libc/musl/src/locale/codepages.h +0 -238
  903. data/modules/emscripten/system/lib/libc/musl/src/locale/gb18030.h +0 -1836
  904. data/modules/emscripten/system/lib/libc/musl/src/locale/hkscs.h +0 -390
  905. data/modules/emscripten/system/lib/libc/musl/src/locale/iconv.c +0 -454
  906. data/modules/emscripten/system/lib/libc/musl/src/locale/iswalnum_l.c +0 -6
  907. data/modules/emscripten/system/lib/libc/musl/src/locale/iswalpha_l.c +0 -6
  908. data/modules/emscripten/system/lib/libc/musl/src/locale/iswblank_l.c +0 -6
  909. data/modules/emscripten/system/lib/libc/musl/src/locale/iswcntrl_l.c +0 -6
  910. data/modules/emscripten/system/lib/libc/musl/src/locale/iswctype_l.c +0 -9
  911. data/modules/emscripten/system/lib/libc/musl/src/locale/iswdigit_l.c +0 -6
  912. data/modules/emscripten/system/lib/libc/musl/src/locale/iswgraph_l.c +0 -6
  913. data/modules/emscripten/system/lib/libc/musl/src/locale/iswlower_l.c +0 -6
  914. data/modules/emscripten/system/lib/libc/musl/src/locale/iswprint_l.c +0 -6
  915. data/modules/emscripten/system/lib/libc/musl/src/locale/iswpunct_l.c +0 -6
  916. data/modules/emscripten/system/lib/libc/musl/src/locale/iswspace_l.c +0 -6
  917. data/modules/emscripten/system/lib/libc/musl/src/locale/iswupper_l.c +0 -6
  918. data/modules/emscripten/system/lib/libc/musl/src/locale/iswxdigit_l.c +0 -6
  919. data/modules/emscripten/system/lib/libc/musl/src/locale/jis0208.h +0 -550
  920. data/modules/emscripten/system/lib/libc/musl/src/locale/ksc.h +0 -640
  921. data/modules/emscripten/system/lib/libc/musl/src/locale/legacychars.h +0 -39
  922. data/modules/emscripten/system/lib/libc/musl/src/locale/strfmon.c +0 -101
  923. data/modules/emscripten/system/lib/libc/musl/src/locale/strxfrm.c +0 -18
  924. data/modules/emscripten/system/lib/libc/musl/src/locale/towctrans_l.c +0 -6
  925. data/modules/emscripten/system/lib/libc/musl/src/locale/towlower_l.c +0 -9
  926. data/modules/emscripten/system/lib/libc/musl/src/locale/towupper_l.c +0 -9
  927. data/modules/emscripten/system/lib/libc/musl/src/locale/wcscoll.c +0 -16
  928. data/modules/emscripten/system/lib/libc/musl/src/locale/wcscoll_l.c +0 -6
  929. data/modules/emscripten/system/lib/libc/musl/src/locale/wcsxfrm.c +0 -21
  930. data/modules/emscripten/system/lib/libc/musl/src/locale/wcsxfrm_l.c +0 -6
  931. data/modules/emscripten/system/lib/libc/musl/src/locale/wctrans_l.c +0 -6
  932. data/modules/emscripten/system/lib/libc/musl/src/locale/wctype_l.c +0 -9
  933. data/modules/emscripten/system/lib/libc/musl/src/multibyte/btowc.c +0 -7
  934. data/modules/emscripten/system/lib/libc/musl/src/multibyte/internal.c +0 -38
  935. data/modules/emscripten/system/lib/libc/musl/src/multibyte/internal.h +0 -22
  936. data/modules/emscripten/system/lib/libc/musl/src/multibyte/mblen.c +0 -17
  937. data/modules/emscripten/system/lib/libc/musl/src/multibyte/mbrlen.c +0 -18
  938. data/modules/emscripten/system/lib/libc/musl/src/multibyte/mbrtowc.c +0 -57
  939. data/modules/emscripten/system/lib/libc/musl/src/multibyte/mbsinit.c +0 -17
  940. data/modules/emscripten/system/lib/libc/musl/src/multibyte/mbsnrtowcs.c +0 -65
  941. data/modules/emscripten/system/lib/libc/musl/src/multibyte/mbsrtowcs.c +0 -100
  942. data/modules/emscripten/system/lib/libc/musl/src/multibyte/mbstowcs.c +0 -7
  943. data/modules/emscripten/system/lib/libc/musl/src/multibyte/mbtowc.c +0 -53
  944. data/modules/emscripten/system/lib/libc/musl/src/multibyte/wcrtomb.c +0 -38
  945. data/modules/emscripten/system/lib/libc/musl/src/multibyte/wcsnrtombs.c +0 -52
  946. data/modules/emscripten/system/lib/libc/musl/src/multibyte/wcsrtombs.c +0 -58
  947. data/modules/emscripten/system/lib/libc/musl/src/multibyte/wcstombs.c +0 -7
  948. data/modules/emscripten/system/lib/libc/musl/src/multibyte/wctob.c +0 -8
  949. data/modules/emscripten/system/lib/libc/musl/src/multibyte/wctomb.c +0 -18
  950. data/modules/emscripten/system/lib/libc/musl/src/regex/regcomp.c +0 -3352
  951. data/modules/emscripten/system/lib/libc/musl/src/regex/regerror.c +0 -35
  952. data/modules/emscripten/system/lib/libc/musl/src/regex/regexec.c +0 -1011
  953. data/modules/emscripten/system/lib/libc/musl/src/regex/tre-mem.c +0 -158
  954. data/modules/emscripten/system/lib/libc/musl/src/regex/tre.h +0 -231
  955. data/modules/emscripten/system/lib/libc/musl/src/stdio/fwprintf.c +0 -13
  956. data/modules/emscripten/system/lib/libc/musl/src/stdio/swprintf.c +0 -14
  957. data/modules/emscripten/system/lib/libc/musl/src/stdio/vfwprintf.c +0 -361
  958. data/modules/emscripten/system/lib/libc/musl/src/stdio/vswprintf.c +0 -53
  959. data/modules/emscripten/system/lib/libc/musl/src/stdio/vwprintf.c +0 -7
  960. data/modules/emscripten/system/lib/libc/musl/src/stdio/wprintf.c +0 -13
  961. data/modules/emscripten/system/lib/libc/musl/src/stdlib/ecvt.c +0 -19
  962. data/modules/emscripten/system/lib/libc/musl/src/stdlib/fcvt.c +0 -25
  963. data/modules/emscripten/system/lib/libc/musl/src/stdlib/gcvt.c +0 -8
  964. data/modules/emscripten/system/lib/libc/musl/src/string/wcpcpy.c +0 -6
  965. data/modules/emscripten/system/lib/libc/musl/src/string/wcpncpy.c +0 -6
  966. data/modules/emscripten/system/lib/libc/musl/src/string/wcscasecmp.c +0 -7
  967. data/modules/emscripten/system/lib/libc/musl/src/string/wcscasecmp_l.c +0 -6
  968. data/modules/emscripten/system/lib/libc/musl/src/string/wcscat.c +0 -7
  969. data/modules/emscripten/system/lib/libc/musl/src/string/wcschr.c +0 -8
  970. data/modules/emscripten/system/lib/libc/musl/src/string/wcscmp.c +0 -7
  971. data/modules/emscripten/system/lib/libc/musl/src/string/wcscpy.c +0 -8
  972. data/modules/emscripten/system/lib/libc/musl/src/string/wcscspn.c +0 -10
  973. data/modules/emscripten/system/lib/libc/musl/src/string/wcsdup.c +0 -11
  974. data/modules/emscripten/system/lib/libc/musl/src/string/wcslen.c +0 -8
  975. data/modules/emscripten/system/lib/libc/musl/src/string/wcsncasecmp.c +0 -9
  976. data/modules/emscripten/system/lib/libc/musl/src/string/wcsncasecmp_l.c +0 -6
  977. data/modules/emscripten/system/lib/libc/musl/src/string/wcsncat.c +0 -10
  978. data/modules/emscripten/system/lib/libc/musl/src/string/wcsncmp.c +0 -7
  979. data/modules/emscripten/system/lib/libc/musl/src/string/wcsncpy.c +0 -9
  980. data/modules/emscripten/system/lib/libc/musl/src/string/wcsnlen.c +0 -8
  981. data/modules/emscripten/system/lib/libc/musl/src/string/wcspbrk.c +0 -7
  982. data/modules/emscripten/system/lib/libc/musl/src/string/wcsrchr.c +0 -8
  983. data/modules/emscripten/system/lib/libc/musl/src/string/wcsspn.c +0 -8
  984. data/modules/emscripten/system/lib/libc/musl/src/string/wcsstr.c +0 -108
  985. data/modules/emscripten/system/lib/libc/musl/src/string/wcstok.c +0 -12
  986. data/modules/emscripten/system/lib/libc/musl/src/string/wcswcs.c +0 -6
  987. data/modules/emscripten/system/lib/libc/musl/src/string/wmemchr.c +0 -8
  988. data/modules/emscripten/system/lib/libc/musl/src/string/wmemcmp.c +0 -8
  989. data/modules/emscripten/system/lib/libc/musl/src/string/wmemcpy.c +0 -9
  990. data/modules/emscripten/system/lib/libc/musl/src/string/wmemmove.c +0 -12
  991. data/modules/emscripten/system/lib/libc/musl/src/string/wmemset.c +0 -9
  992. data/modules/emscripten/system/lib/libc/stdlib/getopt_long.c +0 -511
  993. data/modules/emscripten/system/lib/libc/stdlib/strtod.c +0 -305
  994. data/modules/emscripten/system/lib/libc.symbols +0 -81
  995. data/modules/emscripten/system/lib/libcextra.symbols +0 -115
  996. data/modules/emscripten/system/lib/libcxx/CREDITS.TXT +0 -123
  997. data/modules/emscripten/system/lib/libcxx/LICENSE.txt +0 -76
  998. data/modules/emscripten/system/lib/libcxx/algorithm.cpp +0 -84
  999. data/modules/emscripten/system/lib/libcxx/bind.cpp +0 -30
  1000. data/modules/emscripten/system/lib/libcxx/chrono.cpp +0 -132
  1001. data/modules/emscripten/system/lib/libcxx/condition_variable.cpp +0 -81
  1002. data/modules/emscripten/system/lib/libcxx/debug.cpp +0 -530
  1003. data/modules/emscripten/system/lib/libcxx/exception.cpp +0 -307
  1004. data/modules/emscripten/system/lib/libcxx/future.cpp +0 -291
  1005. data/modules/emscripten/system/lib/libcxx/hash.cpp +0 -570
  1006. data/modules/emscripten/system/lib/libcxx/ios.cpp +0 -460
  1007. data/modules/emscripten/system/lib/libcxx/iostream.cpp +0 -68
  1008. data/modules/emscripten/system/lib/libcxx/locale.cpp +0 -6169
  1009. data/modules/emscripten/system/lib/libcxx/memory.cpp +0 -223
  1010. data/modules/emscripten/system/lib/libcxx/mutex.cpp +0 -253
  1011. data/modules/emscripten/system/lib/libcxx/new.cpp +0 -239
  1012. data/modules/emscripten/system/lib/libcxx/optional.cpp +0 -25
  1013. data/modules/emscripten/system/lib/libcxx/random.cpp +0 -74
  1014. data/modules/emscripten/system/lib/libcxx/readme.txt +0 -1
  1015. data/modules/emscripten/system/lib/libcxx/regex.cpp +0 -325
  1016. data/modules/emscripten/system/lib/libcxx/shared_mutex.cpp +0 -101
  1017. data/modules/emscripten/system/lib/libcxx/stdexcept.cpp +0 -200
  1018. data/modules/emscripten/system/lib/libcxx/string.cpp +0 -530
  1019. data/modules/emscripten/system/lib/libcxx/strstream.cpp +0 -329
  1020. data/modules/emscripten/system/lib/libcxx/support/solaris/README +0 -4
  1021. data/modules/emscripten/system/lib/libcxx/support/solaris/mbsnrtowcs.inc +0 -76
  1022. data/modules/emscripten/system/lib/libcxx/support/solaris/wcsnrtombs.inc +0 -93
  1023. data/modules/emscripten/system/lib/libcxx/support/solaris/xlocale.c +0 -245
  1024. data/modules/emscripten/system/lib/libcxx/support/win32/locale_win32.cpp +0 -95
  1025. data/modules/emscripten/system/lib/libcxx/support/win32/support.cpp +0 -166
  1026. data/modules/emscripten/system/lib/libcxx/symbols +0 -2699
  1027. data/modules/emscripten/system/lib/libcxx/system_error.cpp +0 -205
  1028. data/modules/emscripten/system/lib/libcxx/thread.cpp +0 -225
  1029. data/modules/emscripten/system/lib/libcxx/typeinfo.cpp +0 -73
  1030. data/modules/emscripten/system/lib/libcxx/utility.cpp +0 -17
  1031. data/modules/emscripten/system/lib/libcxx/valarray.cpp +0 -56
  1032. data/modules/emscripten/system/lib/libcxxabi/CREDITS.TXT +0 -38
  1033. data/modules/emscripten/system/lib/libcxxabi/LICENSE.TXT +0 -76
  1034. data/modules/emscripten/system/lib/libcxxabi/include/cxa_demangle.h +0 -167
  1035. data/modules/emscripten/system/lib/libcxxabi/include/cxxabi.h +0 -175
  1036. data/modules/emscripten/system/lib/libcxxabi/lib/buildit +0 -99
  1037. data/modules/emscripten/system/lib/libcxxabi/readme.txt +0 -1
  1038. data/modules/emscripten/system/lib/libcxxabi/src/abort_message.cpp +0 -50
  1039. data/modules/emscripten/system/lib/libcxxabi/src/abort_message.h +0 -33
  1040. data/modules/emscripten/system/lib/libcxxabi/src/cxa_aux_runtime.cpp +0 -34
  1041. data/modules/emscripten/system/lib/libcxxabi/src/cxa_demangle.cpp +0 -11036
  1042. data/modules/emscripten/system/lib/libcxxabi/src/cxa_exception.cpp +0 -622
  1043. data/modules/emscripten/system/lib/libcxxabi/src/cxa_exception.hpp +0 -123
  1044. data/modules/emscripten/system/lib/libcxxabi/src/cxa_exception_storage.cpp +0 -91
  1045. data/modules/emscripten/system/lib/libcxxabi/src/cxa_guard.cpp +0 -231
  1046. data/modules/emscripten/system/lib/libcxxabi/src/cxa_handlers.cpp +0 -125
  1047. data/modules/emscripten/system/lib/libcxxabi/src/cxa_handlers.hpp +0 -54
  1048. data/modules/emscripten/system/lib/libcxxabi/src/cxa_new_delete.cpp +0 -242
  1049. data/modules/emscripten/system/lib/libcxxabi/src/cxa_personality.cpp +0 -1055
  1050. data/modules/emscripten/system/lib/libcxxabi/src/cxa_unexpected.cpp +0 -27
  1051. data/modules/emscripten/system/lib/libcxxabi/src/cxa_vector.cpp +0 -367
  1052. data/modules/emscripten/system/lib/libcxxabi/src/cxa_virtual.cpp +0 -31
  1053. data/modules/emscripten/system/lib/libcxxabi/src/exception.cpp +0 -41
  1054. data/modules/emscripten/system/lib/libcxxabi/src/fallback_malloc.ipp +0 -174
  1055. data/modules/emscripten/system/lib/libcxxabi/src/private_typeinfo.cpp +0 -1146
  1056. data/modules/emscripten/system/lib/libcxxabi/src/private_typeinfo.h +0 -248
  1057. data/modules/emscripten/system/lib/libcxxabi/src/stdexcept.cpp +0 -169
  1058. data/modules/emscripten/system/lib/libcxxabi/src/typeinfo.cpp +0 -53
  1059. data/modules/emscripten/system/lib/libcxxabi/symbols +0 -236
  1060. data/modules/emscripten/system/lib/sdl.cpp +0 -13
  1061. data/modules/emscripten/system/lib/sdl.symbols +0 -1
  1062. data/modules/emscripten/third_party/CppHeaderParser/CppHeaderParser/CppHeaderParser.py +0 -2347
  1063. data/modules/emscripten/third_party/CppHeaderParser/CppHeaderParser/__init__.py +0 -4
  1064. data/modules/emscripten/third_party/CppHeaderParser/CppHeaderParser/doc/CppHeaderParser.html +0 -657
  1065. data/modules/emscripten/third_party/CppHeaderParser/CppHeaderParser/examples/SampleClass.h +0 -147
  1066. data/modules/emscripten/third_party/CppHeaderParser/CppHeaderParser/examples/readSampleClass.py +0 -74
  1067. data/modules/emscripten/third_party/CppHeaderParser/PKG-INFO +0 -249
  1068. data/modules/emscripten/third_party/CppHeaderParser/README.html +0 -544
  1069. data/modules/emscripten/third_party/CppHeaderParser/README.txt +0 -226
  1070. data/modules/emscripten/third_party/CppHeaderParser/setup.py +0 -43
  1071. data/modules/emscripten/third_party/ansidecl.h +0 -371
  1072. data/modules/emscripten/third_party/closure-compiler/COPYING +0 -202
  1073. data/modules/emscripten/third_party/closure-compiler/README +0 -292
  1074. data/modules/emscripten/third_party/closure-compiler/compiler.jar +0 -0
  1075. data/modules/emscripten/third_party/closure-compiler/readme.txt +0 -3
  1076. data/modules/emscripten/third_party/cp-demangle.h +0 -161
  1077. data/modules/emscripten/third_party/demangle.h +0 -549
  1078. data/modules/emscripten/third_party/demangler.py +0 -49
  1079. data/modules/emscripten/third_party/gcc_demangler.c +0 -4226
  1080. data/modules/emscripten/third_party/gcc_demangler.js +0 -21282
  1081. data/modules/emscripten/third_party/jni/emjvm.cpp +0 -133
  1082. data/modules/emscripten/third_party/jni/emjvm.h +0 -8
  1083. data/modules/emscripten/third_party/jni/emjvm.js +0 -185
  1084. data/modules/emscripten/third_party/jni/jni.h +0 -1154
  1085. data/modules/emscripten/third_party/libiberty.h +0 -634
  1086. data/modules/emscripten/third_party/lzma.js/README.markdown +0 -37
  1087. data/modules/emscripten/third_party/lzma.js/doit.bat +0 -4
  1088. data/modules/emscripten/third_party/lzma.js/doit.sh +0 -44
  1089. data/modules/emscripten/third_party/lzma.js/lzip/AUTHORS +0 -7
  1090. data/modules/emscripten/third_party/lzma.js/lzip/COPYING +0 -676
  1091. data/modules/emscripten/third_party/lzma.js/lzip/ChangeLog +0 -201
  1092. data/modules/emscripten/third_party/lzma.js/lzip/INSTALL +0 -56
  1093. data/modules/emscripten/third_party/lzma.js/lzip/Makefile +0 -160
  1094. data/modules/emscripten/third_party/lzma.js/lzip/Makefile.in +0 -138
  1095. data/modules/emscripten/third_party/lzma.js/lzip/NEWS +0 -22
  1096. data/modules/emscripten/third_party/lzma.js/lzip/README +0 -77
  1097. data/modules/emscripten/third_party/lzma.js/lzip/arg_parser.cc +0 -204
  1098. data/modules/emscripten/third_party/lzma.js/lzip/arg_parser.h +0 -106
  1099. data/modules/emscripten/third_party/lzma.js/lzip/configure +0 -192
  1100. data/modules/emscripten/third_party/lzma.js/lzip/decoder.cc +0 -252
  1101. data/modules/emscripten/third_party/lzma.js/lzip/decoder.h +0 -268
  1102. data/modules/emscripten/third_party/lzma.js/lzip/encoder.cc +0 -643
  1103. data/modules/emscripten/third_party/lzma.js/lzip/encoder.h +0 -582
  1104. data/modules/emscripten/third_party/lzma.js/lzip/fast_encoder.cc +0 -378
  1105. data/modules/emscripten/third_party/lzma.js/lzip/fast_encoder.h +0 -171
  1106. data/modules/emscripten/third_party/lzma.js/lzip/lzip.h +0 -264
  1107. data/modules/emscripten/third_party/lzma.js/lzip/main.cc +0 -545
  1108. data/modules/emscripten/third_party/lzma.js/lzma-decoder.js +0 -27
  1109. data/modules/emscripten/third_party/lzma.js/lzma-full.js +0 -27
  1110. data/modules/emscripten/third_party/lzma.js/native_test.sh +0 -5
  1111. data/modules/emscripten/third_party/lzma.js/post.js +0 -13
  1112. data/modules/emscripten/third_party/lzma.js/pre.js +0 -13
  1113. data/modules/emscripten/third_party/lzma.js/test-decoder.js +0 -39
  1114. data/modules/emscripten/third_party/lzma.js/test-full.html +0 -9
  1115. data/modules/emscripten/third_party/lzma.js/test-full.js +0 -78
  1116. data/modules/emscripten/third_party/ply/ANNOUNCE +0 -40
  1117. data/modules/emscripten/third_party/ply/CHANGES +0 -1093
  1118. data/modules/emscripten/third_party/ply/PKG-INFO +0 -22
  1119. data/modules/emscripten/third_party/ply/README +0 -271
  1120. data/modules/emscripten/third_party/ply/TODO +0 -16
  1121. data/modules/emscripten/third_party/ply/doc/internal.html +0 -874
  1122. data/modules/emscripten/third_party/ply/doc/makedoc.py +0 -194
  1123. data/modules/emscripten/third_party/ply/doc/ply.html +0 -3262
  1124. data/modules/emscripten/third_party/ply/example/BASIC/README +0 -79
  1125. data/modules/emscripten/third_party/ply/example/BASIC/basic.py +0 -71
  1126. data/modules/emscripten/third_party/ply/example/BASIC/basiclex.py +0 -74
  1127. data/modules/emscripten/third_party/ply/example/BASIC/basiclog.py +0 -79
  1128. data/modules/emscripten/third_party/ply/example/BASIC/basinterp.py +0 -441
  1129. data/modules/emscripten/third_party/ply/example/BASIC/basparse.py +0 -424
  1130. data/modules/emscripten/third_party/ply/example/BASIC/dim.bas +0 -14
  1131. data/modules/emscripten/third_party/ply/example/BASIC/func.bas +0 -5
  1132. data/modules/emscripten/third_party/ply/example/BASIC/gcd.bas +0 -22
  1133. data/modules/emscripten/third_party/ply/example/BASIC/gosub.bas +0 -13
  1134. data/modules/emscripten/third_party/ply/example/BASIC/hello.bas +0 -4
  1135. data/modules/emscripten/third_party/ply/example/BASIC/linear.bas +0 -17
  1136. data/modules/emscripten/third_party/ply/example/BASIC/maxsin.bas +0 -12
  1137. data/modules/emscripten/third_party/ply/example/BASIC/powers.bas +0 -13
  1138. data/modules/emscripten/third_party/ply/example/BASIC/rand.bas +0 -4
  1139. data/modules/emscripten/third_party/ply/example/BASIC/sales.bas +0 -20
  1140. data/modules/emscripten/third_party/ply/example/BASIC/sears.bas +0 -18
  1141. data/modules/emscripten/third_party/ply/example/BASIC/sqrt1.bas +0 -5
  1142. data/modules/emscripten/third_party/ply/example/BASIC/sqrt2.bas +0 -4
  1143. data/modules/emscripten/third_party/ply/example/GardenSnake/GardenSnake.py +0 -709
  1144. data/modules/emscripten/third_party/ply/example/GardenSnake/README +0 -5
  1145. data/modules/emscripten/third_party/ply/example/README +0 -10
  1146. data/modules/emscripten/third_party/ply/example/ansic/README +0 -2
  1147. data/modules/emscripten/third_party/ply/example/ansic/clex.py +0 -164
  1148. data/modules/emscripten/third_party/ply/example/ansic/cparse.py +0 -863
  1149. data/modules/emscripten/third_party/ply/example/calc/calc.py +0 -107
  1150. data/modules/emscripten/third_party/ply/example/calcdebug/calc.py +0 -113
  1151. data/modules/emscripten/third_party/ply/example/classcalc/calc.py +0 -157
  1152. data/modules/emscripten/third_party/ply/example/cleanup.sh +0 -2
  1153. data/modules/emscripten/third_party/ply/example/closurecalc/calc.py +0 -130
  1154. data/modules/emscripten/third_party/ply/example/hedit/hedit.py +0 -48
  1155. data/modules/emscripten/third_party/ply/example/newclasscalc/calc.py +0 -160
  1156. data/modules/emscripten/third_party/ply/example/optcalc/README +0 -9
  1157. data/modules/emscripten/third_party/ply/example/optcalc/calc.py +0 -119
  1158. data/modules/emscripten/third_party/ply/example/unicalc/calc.py +0 -117
  1159. data/modules/emscripten/third_party/ply/example/yply/README +0 -41
  1160. data/modules/emscripten/third_party/ply/example/yply/ylex.py +0 -112
  1161. data/modules/emscripten/third_party/ply/example/yply/yparse.py +0 -217
  1162. data/modules/emscripten/third_party/ply/example/yply/yply.py +0 -53
  1163. data/modules/emscripten/third_party/ply/ply/__init__.py +0 -4
  1164. data/modules/emscripten/third_party/ply/ply/cpp.py +0 -898
  1165. data/modules/emscripten/third_party/ply/ply/ctokens.py +0 -133
  1166. data/modules/emscripten/third_party/ply/ply/lex.py +0 -1058
  1167. data/modules/emscripten/third_party/ply/ply/yacc.py +0 -3276
  1168. data/modules/emscripten/third_party/ply/setup.py +0 -31
  1169. data/modules/emscripten/third_party/ply/test/README +0 -7
  1170. data/modules/emscripten/third_party/ply/test/calclex.py +0 -49
  1171. data/modules/emscripten/third_party/ply/test/cleanup.sh +0 -4
  1172. data/modules/emscripten/third_party/ply/test/lex_closure.py +0 -54
  1173. data/modules/emscripten/third_party/ply/test/lex_doc1.py +0 -26
  1174. data/modules/emscripten/third_party/ply/test/lex_dup1.py +0 -29
  1175. data/modules/emscripten/third_party/ply/test/lex_dup2.py +0 -33
  1176. data/modules/emscripten/third_party/ply/test/lex_dup3.py +0 -31
  1177. data/modules/emscripten/third_party/ply/test/lex_empty.py +0 -20
  1178. data/modules/emscripten/third_party/ply/test/lex_error1.py +0 -24
  1179. data/modules/emscripten/third_party/ply/test/lex_error2.py +0 -26
  1180. data/modules/emscripten/third_party/ply/test/lex_error3.py +0 -27
  1181. data/modules/emscripten/third_party/ply/test/lex_error4.py +0 -27
  1182. data/modules/emscripten/third_party/ply/test/lex_hedit.py +0 -47
  1183. data/modules/emscripten/third_party/ply/test/lex_ignore.py +0 -31
  1184. data/modules/emscripten/third_party/ply/test/lex_ignore2.py +0 -29
  1185. data/modules/emscripten/third_party/ply/test/lex_literal1.py +0 -25
  1186. data/modules/emscripten/third_party/ply/test/lex_literal2.py +0 -25
  1187. data/modules/emscripten/third_party/ply/test/lex_many_tokens.py +0 -27
  1188. data/modules/emscripten/third_party/ply/test/lex_module.py +0 -10
  1189. data/modules/emscripten/third_party/ply/test/lex_module_import.py +0 -42
  1190. data/modules/emscripten/third_party/ply/test/lex_object.py +0 -55
  1191. data/modules/emscripten/third_party/ply/test/lex_opt_alias.py +0 -54
  1192. data/modules/emscripten/third_party/ply/test/lex_optimize.py +0 -50
  1193. data/modules/emscripten/third_party/ply/test/lex_optimize2.py +0 -50
  1194. data/modules/emscripten/third_party/ply/test/lex_optimize3.py +0 -52
  1195. data/modules/emscripten/third_party/ply/test/lex_re1.py +0 -27
  1196. data/modules/emscripten/third_party/ply/test/lex_re2.py +0 -27
  1197. data/modules/emscripten/third_party/ply/test/lex_re3.py +0 -29
  1198. data/modules/emscripten/third_party/ply/test/lex_rule1.py +0 -27
  1199. data/modules/emscripten/third_party/ply/test/lex_rule2.py +0 -29
  1200. data/modules/emscripten/third_party/ply/test/lex_rule3.py +0 -27
  1201. data/modules/emscripten/third_party/ply/test/lex_state1.py +0 -40
  1202. data/modules/emscripten/third_party/ply/test/lex_state2.py +0 -40
  1203. data/modules/emscripten/third_party/ply/test/lex_state3.py +0 -42
  1204. data/modules/emscripten/third_party/ply/test/lex_state4.py +0 -41
  1205. data/modules/emscripten/third_party/ply/test/lex_state5.py +0 -40
  1206. data/modules/emscripten/third_party/ply/test/lex_state_noerror.py +0 -39
  1207. data/modules/emscripten/third_party/ply/test/lex_state_norule.py +0 -40
  1208. data/modules/emscripten/third_party/ply/test/lex_state_try.py +0 -45
  1209. data/modules/emscripten/third_party/ply/test/lex_token1.py +0 -19
  1210. data/modules/emscripten/third_party/ply/test/lex_token2.py +0 -22
  1211. data/modules/emscripten/third_party/ply/test/lex_token3.py +0 -24
  1212. data/modules/emscripten/third_party/ply/test/lex_token4.py +0 -26
  1213. data/modules/emscripten/third_party/ply/test/lex_token5.py +0 -31
  1214. data/modules/emscripten/third_party/ply/test/lex_token_dup.py +0 -29
  1215. data/modules/emscripten/third_party/ply/test/testlex.py +0 -606
  1216. data/modules/emscripten/third_party/ply/test/testyacc.py +0 -347
  1217. data/modules/emscripten/third_party/ply/test/yacc_badargs.py +0 -68
  1218. data/modules/emscripten/third_party/ply/test/yacc_badid.py +0 -77
  1219. data/modules/emscripten/third_party/ply/test/yacc_badprec.py +0 -64
  1220. data/modules/emscripten/third_party/ply/test/yacc_badprec2.py +0 -68
  1221. data/modules/emscripten/third_party/ply/test/yacc_badprec3.py +0 -68
  1222. data/modules/emscripten/third_party/ply/test/yacc_badrule.py +0 -68
  1223. data/modules/emscripten/third_party/ply/test/yacc_badtok.py +0 -68
  1224. data/modules/emscripten/third_party/ply/test/yacc_dup.py +0 -68
  1225. data/modules/emscripten/third_party/ply/test/yacc_error1.py +0 -68
  1226. data/modules/emscripten/third_party/ply/test/yacc_error2.py +0 -68
  1227. data/modules/emscripten/third_party/ply/test/yacc_error3.py +0 -67
  1228. data/modules/emscripten/third_party/ply/test/yacc_error4.py +0 -72
  1229. data/modules/emscripten/third_party/ply/test/yacc_inf.py +0 -56
  1230. data/modules/emscripten/third_party/ply/test/yacc_literal.py +0 -69
  1231. data/modules/emscripten/third_party/ply/test/yacc_misplaced.py +0 -68
  1232. data/modules/emscripten/third_party/ply/test/yacc_missing1.py +0 -68
  1233. data/modules/emscripten/third_party/ply/test/yacc_nested.py +0 -33
  1234. data/modules/emscripten/third_party/ply/test/yacc_nodoc.py +0 -67
  1235. data/modules/emscripten/third_party/ply/test/yacc_noerror.py +0 -66
  1236. data/modules/emscripten/third_party/ply/test/yacc_nop.py +0 -68
  1237. data/modules/emscripten/third_party/ply/test/yacc_notfunc.py +0 -66
  1238. data/modules/emscripten/third_party/ply/test/yacc_notok.py +0 -67
  1239. data/modules/emscripten/third_party/ply/test/yacc_prec1.py +0 -68
  1240. data/modules/emscripten/third_party/ply/test/yacc_rr.py +0 -72
  1241. data/modules/emscripten/third_party/ply/test/yacc_rr_unused.py +0 -30
  1242. data/modules/emscripten/third_party/ply/test/yacc_simple.py +0 -68
  1243. data/modules/emscripten/third_party/ply/test/yacc_sr.py +0 -63
  1244. data/modules/emscripten/third_party/ply/test/yacc_term1.py +0 -68
  1245. data/modules/emscripten/third_party/ply/test/yacc_unused.py +0 -77
  1246. data/modules/emscripten/third_party/ply/test/yacc_unused_rule.py +0 -72
  1247. data/modules/emscripten/third_party/ply/test/yacc_uprec.py +0 -63
  1248. data/modules/emscripten/third_party/ply/test/yacc_uprec2.py +0 -63
  1249. data/modules/emscripten/third_party/readme.txt +0 -7
  1250. data/modules/emscripten/third_party/stb_image.c +0 -4673
  1251. data/modules/emscripten/third_party/websockify/CHANGES.txt +0 -23
  1252. data/modules/emscripten/third_party/websockify/LICENSE.txt +0 -16
  1253. data/modules/emscripten/third_party/websockify/MANIFEST.in +0 -1
  1254. data/modules/emscripten/third_party/websockify/Makefile +0 -11
  1255. data/modules/emscripten/third_party/websockify/README.md +0 -168
  1256. data/modules/emscripten/third_party/websockify/Windows/Windows Service Readme.txt +0 -39
  1257. data/modules/emscripten/third_party/websockify/Windows/noVNC Websocket Service Project/Program.cs +0 -24
  1258. data/modules/emscripten/third_party/websockify/Windows/noVNC Websocket Service Project/ProjectInstaller.Designer.cs +0 -61
  1259. data/modules/emscripten/third_party/websockify/Windows/noVNC Websocket Service Project/ProjectInstaller.cs +0 -19
  1260. data/modules/emscripten/third_party/websockify/Windows/noVNC Websocket Service Project/ProjectInstaller.resx +0 -129
  1261. data/modules/emscripten/third_party/websockify/Windows/noVNC Websocket Service Project/Properties/AssemblyInfo.cs +0 -36
  1262. data/modules/emscripten/third_party/websockify/Windows/noVNC Websocket Service Project/Service1.Designer.cs +0 -37
  1263. data/modules/emscripten/third_party/websockify/Windows/noVNC Websocket Service Project/Service1.cs +0 -41
  1264. data/modules/emscripten/third_party/websockify/Windows/noVNC Websocket Service Project/noVNC Websocket.csproj +0 -75
  1265. data/modules/emscripten/third_party/websockify/Windows/noVNC Websocket Service Project/noVNC Websocket.sln +0 -20
  1266. data/modules/emscripten/third_party/websockify/docs/LICENSE.GPL-3 +0 -621
  1267. data/modules/emscripten/third_party/websockify/docs/LICENSE.LGPL-3 +0 -165
  1268. data/modules/emscripten/third_party/websockify/docs/LICENSE.MPL-2.0 +0 -373
  1269. data/modules/emscripten/third_party/websockify/docs/TODO +0 -9
  1270. data/modules/emscripten/third_party/websockify/docs/flash_policy.txt +0 -4
  1271. data/modules/emscripten/third_party/websockify/docs/latency_results.txt +0 -114
  1272. data/modules/emscripten/third_party/websockify/docs/notes +0 -17
  1273. data/modules/emscripten/third_party/websockify/docs/release.txt +0 -9
  1274. data/modules/emscripten/third_party/websockify/docs/websockify.1 +0 -110
  1275. data/modules/emscripten/third_party/websockify/include/VT100.js +0 -919
  1276. data/modules/emscripten/third_party/websockify/include/base64.js +0 -114
  1277. data/modules/emscripten/third_party/websockify/include/keysym.js +0 -99
  1278. data/modules/emscripten/third_party/websockify/include/util.js +0 -359
  1279. data/modules/emscripten/third_party/websockify/include/web-socket-js/README.txt +0 -109
  1280. data/modules/emscripten/third_party/websockify/include/web-socket-js/WebSocketMain.swf +0 -0
  1281. data/modules/emscripten/third_party/websockify/include/web-socket-js/swfobject.js +0 -4
  1282. data/modules/emscripten/third_party/websockify/include/web-socket-js/web_socket.js +0 -391
  1283. data/modules/emscripten/third_party/websockify/include/websock.js +0 -422
  1284. data/modules/emscripten/third_party/websockify/include/webutil.js +0 -216
  1285. data/modules/emscripten/third_party/websockify/include/wsirc.js +0 -235
  1286. data/modules/emscripten/third_party/websockify/include/wstelnet.js +0 -335
  1287. data/modules/emscripten/third_party/websockify/other/Makefile +0 -14
  1288. data/modules/emscripten/third_party/websockify/other/README.md +0 -51
  1289. data/modules/emscripten/third_party/websockify/other/launch.sh +0 -108
  1290. data/modules/emscripten/third_party/websockify/other/project.clj +0 -13
  1291. data/modules/emscripten/third_party/websockify/other/websocket.c +0 -802
  1292. data/modules/emscripten/third_party/websockify/other/websocket.h +0 -84
  1293. data/modules/emscripten/third_party/websockify/other/websocket.rb +0 -456
  1294. data/modules/emscripten/third_party/websockify/other/websockify.c +0 -385
  1295. data/modules/emscripten/third_party/websockify/other/websockify.clj +0 -233
  1296. data/modules/emscripten/third_party/websockify/other/websockify.js +0 -196
  1297. data/modules/emscripten/third_party/websockify/other/websockify.rb +0 -171
  1298. data/modules/emscripten/third_party/websockify/other/wswrap +0 -22
  1299. data/modules/emscripten/third_party/websockify/rebind +0 -18
  1300. data/modules/emscripten/third_party/websockify/rebind.c +0 -94
  1301. data/modules/emscripten/third_party/websockify/run +0 -5
  1302. data/modules/emscripten/third_party/websockify/setup.py +0 -30
  1303. data/modules/emscripten/third_party/websockify/tests/b64_vs_utf8.py +0 -29
  1304. data/modules/emscripten/third_party/websockify/tests/base64.html +0 -91
  1305. data/modules/emscripten/third_party/websockify/tests/base64.js +0 -12
  1306. data/modules/emscripten/third_party/websockify/tests/echo.html +0 -148
  1307. data/modules/emscripten/third_party/websockify/tests/echo.py +0 -75
  1308. data/modules/emscripten/third_party/websockify/tests/echo.rb +0 -62
  1309. data/modules/emscripten/third_party/websockify/tests/latency.html +0 -290
  1310. data/modules/emscripten/third_party/websockify/tests/latency.py +0 -75
  1311. data/modules/emscripten/third_party/websockify/tests/load.html +0 -250
  1312. data/modules/emscripten/third_party/websockify/tests/load.py +0 -167
  1313. data/modules/emscripten/third_party/websockify/tests/plain_echo.html +0 -168
  1314. data/modules/emscripten/third_party/websockify/tests/simple.html +0 -68
  1315. data/modules/emscripten/third_party/websockify/tests/utf8-list.py +0 -22
  1316. data/modules/emscripten/third_party/websockify/websockify/__init__.py +0 -2
  1317. data/modules/emscripten/third_party/websockify/websockify/websocket.py +0 -982
  1318. data/modules/emscripten/third_party/websockify/websockify/websocketproxy.py +0 -393
  1319. data/modules/emscripten/third_party/websockify/websockify.py +0 -5
  1320. data/modules/emscripten/third_party/websockify/wsirc.html +0 -99
  1321. data/modules/emscripten/third_party/websockify/wstelnet.html +0 -74
  1322. data/modules/emscripten/tools/__init__.py +0 -0
  1323. data/modules/emscripten/tools/asm_module.py +0 -275
  1324. data/modules/emscripten/tools/autodebugger.py +0 -291
  1325. data/modules/emscripten/tools/autodebugger_c.py +0 -37
  1326. data/modules/emscripten/tools/autodebugger_indenter.py +0 -18
  1327. data/modules/emscripten/tools/autodebugger_js.py +0 -47
  1328. data/modules/emscripten/tools/autodediffer.py +0 -60
  1329. data/modules/emscripten/tools/bindings_generator.py +0 -832
  1330. data/modules/emscripten/tools/bisect_pair.py +0 -88
  1331. data/modules/emscripten/tools/cache.py +0 -196
  1332. data/modules/emscripten/tools/clean_webconsole.py +0 -34
  1333. data/modules/emscripten/tools/crunch-worker.js +0 -124
  1334. data/modules/emscripten/tools/diff_autodebugger.py +0 -15
  1335. data/modules/emscripten/tools/eliminator/asm-eliminator-test-output.js +0 -307
  1336. data/modules/emscripten/tools/eliminator/asm-eliminator-test.js +0 -382
  1337. data/modules/emscripten/tools/eliminator/eliminator-test-output.js +0 -6136
  1338. data/modules/emscripten/tools/eliminator/eliminator-test.js +0 -8879
  1339. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/README.html +0 -888
  1340. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/README.org +0 -463
  1341. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/bin/uglifyjs +0 -317
  1342. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/docstyle.css +0 -75
  1343. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/lib/object-ast.js +0 -75
  1344. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/lib/parse-js.js +0 -1363
  1345. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/lib/process.js +0 -2005
  1346. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/lib/squeeze-more.js +0 -51
  1347. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/package.json +0 -22
  1348. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/beautify.js +0 -28
  1349. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/testparser.js +0 -402
  1350. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/expected/array1.js +0 -1
  1351. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/expected/array2.js +0 -1
  1352. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/expected/array3.js +0 -1
  1353. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/expected/array4.js +0 -1
  1354. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/expected/assignment.js +0 -1
  1355. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/expected/concatstring.js +0 -1
  1356. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/expected/const.js +0 -1
  1357. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/expected/empty-blocks.js +0 -1
  1358. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/expected/forstatement.js +0 -1
  1359. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/expected/if.js +0 -1
  1360. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/expected/ifreturn.js +0 -1
  1361. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/expected/ifreturn2.js +0 -1
  1362. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/expected/issue10.js +0 -1
  1363. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/expected/issue11.js +0 -1
  1364. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/expected/issue13.js +0 -1
  1365. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/expected/issue14.js +0 -1
  1366. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/expected/issue16.js +0 -1
  1367. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/expected/issue17.js +0 -1
  1368. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/expected/issue20.js +0 -1
  1369. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/expected/issue21.js +0 -1
  1370. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/expected/issue25.js +0 -1
  1371. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/expected/issue27.js +0 -1
  1372. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/expected/issue28.js +0 -1
  1373. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/expected/issue29.js +0 -1
  1374. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/expected/issue30.js +0 -1
  1375. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/expected/issue34.js +0 -1
  1376. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/expected/issue4.js +0 -1
  1377. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/expected/issue48.js +0 -1
  1378. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/expected/issue50.js +0 -1
  1379. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/expected/issue53.js +0 -1
  1380. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/expected/issue54.1.js +0 -1
  1381. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/expected/issue68.js +0 -1
  1382. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/expected/issue69.js +0 -1
  1383. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/expected/issue9.js +0 -1
  1384. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/expected/mangle.js +0 -1
  1385. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/expected/strict-equals.js +0 -1
  1386. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/expected/var.js +0 -1
  1387. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/expected/with.js +0 -1
  1388. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/test/array1.js +0 -3
  1389. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/test/array2.js +0 -4
  1390. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/test/array3.js +0 -4
  1391. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/test/array4.js +0 -6
  1392. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/test/assignment.js +0 -20
  1393. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/test/concatstring.js +0 -3
  1394. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/test/const.js +0 -5
  1395. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/test/empty-blocks.js +0 -4
  1396. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/test/forstatement.js +0 -10
  1397. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/test/if.js +0 -6
  1398. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/test/ifreturn.js +0 -9
  1399. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/test/ifreturn2.js +0 -16
  1400. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/test/issue10.js +0 -1
  1401. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/test/issue11.js +0 -3
  1402. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/test/issue13.js +0 -1
  1403. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/test/issue14.js +0 -1
  1404. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/test/issue16.js +0 -1
  1405. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/test/issue17.js +0 -4
  1406. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/test/issue20.js +0 -1
  1407. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/test/issue21.js +0 -6
  1408. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/test/issue25.js +0 -7
  1409. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/test/issue27.js +0 -1
  1410. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/test/issue28.js +0 -3
  1411. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/test/issue29.js +0 -1
  1412. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/test/issue30.js +0 -3
  1413. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/test/issue34.js +0 -3
  1414. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/test/issue4.js +0 -3
  1415. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/test/issue48.js +0 -1
  1416. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/test/issue50.js +0 -9
  1417. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/test/issue53.js +0 -1
  1418. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/test/issue54.1.js +0 -3
  1419. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/test/issue68.js +0 -5
  1420. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/test/issue69.js +0 -1
  1421. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/test/issue9.js +0 -4
  1422. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/test/mangle.js +0 -5
  1423. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/test/strict-equals.js +0 -3
  1424. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/test/var.js +0 -3
  1425. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/compress/test/with.js +0 -2
  1426. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/test/unit/scripts.js +0 -55
  1427. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/tmp/hoist.js +0 -33
  1428. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/tmp/instrument.js +0 -97
  1429. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/tmp/instrument2.js +0 -138
  1430. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/tmp/test.js +0 -16
  1431. data/modules/emscripten/tools/eliminator/node_modules/uglify-js/uglify-js.js +0 -17
  1432. data/modules/emscripten/tools/eliminator/safe-eliminator-test-output.js +0 -85
  1433. data/modules/emscripten/tools/eliminator/safe-eliminator-test.js +0 -103
  1434. data/modules/emscripten/tools/emconfiguren.py +0 -19
  1435. data/modules/emscripten/tools/emmaken.py +0 -230
  1436. data/modules/emscripten/tools/emmakenxx.py +0 -18
  1437. data/modules/emscripten/tools/exec_llvm.py +0 -50
  1438. data/modules/emscripten/tools/file2json.py +0 -49
  1439. data/modules/emscripten/tools/file_packager.py +0 -719
  1440. data/modules/emscripten/tools/find_bigfuncs.py +0 -23
  1441. data/modules/emscripten/tools/find_bigis.py +0 -18
  1442. data/modules/emscripten/tools/find_bigvars.py +0 -24
  1443. data/modules/emscripten/tools/fix_closure.py +0 -88
  1444. data/modules/emscripten/tools/gen_struct_info.py +0 -509
  1445. data/modules/emscripten/tools/ie7_fix.py +0 -14
  1446. data/modules/emscripten/tools/js-optimizer.js +0 -4023
  1447. data/modules/emscripten/tools/js_optimizer.py +0 -357
  1448. data/modules/emscripten/tools/jsrun.py +0 -37
  1449. data/modules/emscripten/tools/ll-strip.py +0 -56
  1450. data/modules/emscripten/tools/make_file.py +0 -19
  1451. data/modules/emscripten/tools/make_minigzip.py +0 -13
  1452. data/modules/emscripten/tools/merge_asm.py +0 -26
  1453. data/modules/emscripten/tools/namespacer.py +0 -95
  1454. data/modules/emscripten/tools/nativize_llvm.py +0 -34
  1455. data/modules/emscripten/tools/node_modules/source-map/CHANGELOG.md +0 -58
  1456. data/modules/emscripten/tools/node_modules/source-map/LICENSE +0 -28
  1457. data/modules/emscripten/tools/node_modules/source-map/Makefile.dryice.js +0 -166
  1458. data/modules/emscripten/tools/node_modules/source-map/README.md +0 -347
  1459. data/modules/emscripten/tools/node_modules/source-map/build/assert-shim.js +0 -56
  1460. data/modules/emscripten/tools/node_modules/source-map/build/mini-require.js +0 -152
  1461. data/modules/emscripten/tools/node_modules/source-map/build/prefix-source-map.jsm +0 -20
  1462. data/modules/emscripten/tools/node_modules/source-map/build/prefix-utils.jsm +0 -18
  1463. data/modules/emscripten/tools/node_modules/source-map/build/suffix-browser.js +0 -8
  1464. data/modules/emscripten/tools/node_modules/source-map/build/suffix-source-map.jsm +0 -6
  1465. data/modules/emscripten/tools/node_modules/source-map/build/suffix-utils.jsm +0 -21
  1466. data/modules/emscripten/tools/node_modules/source-map/build/test-prefix.js +0 -8
  1467. data/modules/emscripten/tools/node_modules/source-map/build/test-suffix.js +0 -3
  1468. data/modules/emscripten/tools/node_modules/source-map/lib/source-map/array-set.js +0 -96
  1469. data/modules/emscripten/tools/node_modules/source-map/lib/source-map/base64-vlq.js +0 -144
  1470. data/modules/emscripten/tools/node_modules/source-map/lib/source-map/base64.js +0 -42
  1471. data/modules/emscripten/tools/node_modules/source-map/lib/source-map/binary-search.js +0 -81
  1472. data/modules/emscripten/tools/node_modules/source-map/lib/source-map/source-map-consumer.js +0 -430
  1473. data/modules/emscripten/tools/node_modules/source-map/lib/source-map/source-map-generator.js +0 -381
  1474. data/modules/emscripten/tools/node_modules/source-map/lib/source-map/source-node.js +0 -353
  1475. data/modules/emscripten/tools/node_modules/source-map/lib/source-map/util.js +0 -117
  1476. data/modules/emscripten/tools/node_modules/source-map/lib/source-map.js +0 -8
  1477. data/modules/emscripten/tools/node_modules/source-map/node_modules/amdefine/LICENSE +0 -58
  1478. data/modules/emscripten/tools/node_modules/source-map/node_modules/amdefine/README.md +0 -119
  1479. data/modules/emscripten/tools/node_modules/source-map/node_modules/amdefine/amdefine.js +0 -299
  1480. data/modules/emscripten/tools/node_modules/source-map/node_modules/amdefine/package.json +0 -33
  1481. data/modules/emscripten/tools/node_modules/source-map/package.json +0 -74
  1482. data/modules/emscripten/tools/node_modules/source-map/test/run-tests.js +0 -73
  1483. data/modules/emscripten/tools/node_modules/source-map/test/source-map/test-api.js +0 -26
  1484. data/modules/emscripten/tools/node_modules/source-map/test/source-map/test-array-set.js +0 -71
  1485. data/modules/emscripten/tools/node_modules/source-map/test/source-map/test-base64-vlq.js +0 -24
  1486. data/modules/emscripten/tools/node_modules/source-map/test/source-map/test-base64.js +0 -35
  1487. data/modules/emscripten/tools/node_modules/source-map/test/source-map/test-binary-search.js +0 -54
  1488. data/modules/emscripten/tools/node_modules/source-map/test/source-map/test-dog-fooding.js +0 -72
  1489. data/modules/emscripten/tools/node_modules/source-map/test/source-map/test-source-map-consumer.js +0 -306
  1490. data/modules/emscripten/tools/node_modules/source-map/test/source-map/test-source-map-generator.js +0 -391
  1491. data/modules/emscripten/tools/node_modules/source-map/test/source-map/test-source-node.js +0 -282
  1492. data/modules/emscripten/tools/node_modules/source-map/test/source-map/util.js +0 -152
  1493. data/modules/emscripten/tools/reproduceriter.js +0 -216
  1494. data/modules/emscripten/tools/reproduceriter.py +0 -160
  1495. data/modules/emscripten/tools/response_file.py +0 -34
  1496. data/modules/emscripten/tools/scan_js.py +0 -20
  1497. data/modules/emscripten/tools/scan_ll.py +0 -18
  1498. data/modules/emscripten/tools/scons/site_scons/site_tools/emscripten/__init__.py +0 -3
  1499. data/modules/emscripten/tools/scons/site_scons/site_tools/emscripten/emscripten.py +0 -46
  1500. data/modules/emscripten/tools/settings_template_readonly.py +0 -49
  1501. data/modules/emscripten/tools/shared.py +0 -1705
  1502. data/modules/emscripten/tools/source-maps/sourcemap2json.js +0 -15
  1503. data/modules/emscripten/tools/source-maps/sourcemapper.js +0 -208
  1504. data/modules/emscripten/tools/split.py +0 -105
  1505. data/modules/emscripten/tools/split_asm.py +0 -30
  1506. data/modules/emscripten/tools/tempfiles.py +0 -41
  1507. data/modules/emscripten/tools/test-js-optimizer-asm-last-output.js +0 -75
  1508. data/modules/emscripten/tools/test-js-optimizer-asm-last.js +0 -91
  1509. data/modules/emscripten/tools/test-js-optimizer-asm-minlast-output.js +0 -2
  1510. data/modules/emscripten/tools/test-js-optimizer-asm-minlast.js +0 -8
  1511. data/modules/emscripten/tools/test-js-optimizer-asm-outline1-output.js +0 -929
  1512. data/modules/emscripten/tools/test-js-optimizer-asm-outline1.js +0 -351
  1513. data/modules/emscripten/tools/test-js-optimizer-asm-outline2-output.js +0 -793
  1514. data/modules/emscripten/tools/test-js-optimizer-asm-outline2.js +0 -606
  1515. data/modules/emscripten/tools/test-js-optimizer-asm-outline3-output.js +0 -28
  1516. data/modules/emscripten/tools/test-js-optimizer-asm-outline3.js +0 -30
  1517. data/modules/emscripten/tools/test-js-optimizer-asm-pre-output.js +0 -522
  1518. data/modules/emscripten/tools/test-js-optimizer-asm-pre.js +0 -533
  1519. data/modules/emscripten/tools/test-js-optimizer-asm-regs-min-output.js +0 -36
  1520. data/modules/emscripten/tools/test-js-optimizer-asm-regs-min.js +0 -37
  1521. data/modules/emscripten/tools/test-js-optimizer-asm-regs-output.js +0 -106
  1522. data/modules/emscripten/tools/test-js-optimizer-asm-regs.js +0 -110
  1523. data/modules/emscripten/tools/test-js-optimizer-asm-relocate-output.js +0 -9
  1524. data/modules/emscripten/tools/test-js-optimizer-asm-relocate.js +0 -12
  1525. data/modules/emscripten/tools/test-js-optimizer-output.js +0 -291
  1526. data/modules/emscripten/tools/test-js-optimizer-regs-output.js +0 -232
  1527. data/modules/emscripten/tools/test-js-optimizer-regs.js +0 -237
  1528. data/modules/emscripten/tools/test-js-optimizer-t2-output.js +0 -91
  1529. data/modules/emscripten/tools/test-js-optimizer-t2.js +0 -92
  1530. data/modules/emscripten/tools/test-js-optimizer-t2c-output.js +0 -17
  1531. data/modules/emscripten/tools/test-js-optimizer-t2c.js +0 -18
  1532. data/modules/emscripten/tools/test-js-optimizer-t3-output.js +0 -49
  1533. data/modules/emscripten/tools/test-js-optimizer-t3.js +0 -50
  1534. data/modules/emscripten/tools/test-js-optimizer.js +0 -401
  1535. data/modules/emscripten/tools/validate_asmjs.py +0 -82
  1536. data/modules/mruby/mrblib/print.rb +0 -18
  1537. data/modules/mruby/src/re.h +0 -12
@@ -1,2069 +0,0 @@
1
- #!/usr/bin/env python2
2
- # -*- Mode: python -*-
3
-
4
- '''
5
- emcc - compiler helper script
6
- =============================
7
-
8
- emcc is a drop-in replacement for a compiler like gcc or clang.
9
-
10
- Tell your build system to use this instead of the compiler, and similarly
11
- use emar, emranlib etc. instead of the same command without 'em'.
12
-
13
- Example uses:
14
-
15
- * For configure, instead of ./configure, cmake, etc., run emconfigure.py
16
- with that command as an argument, for example
17
-
18
- emconfigure.py ./configure [options]
19
-
20
- emconfigure.py is a tiny script that just sets some environment vars
21
- as a convenience. The command just shown is equivalent to
22
-
23
- EMMAKEN_JUST_CONFIGURE=1 RANLIB=PATH/emranlib AR=PATH/emar CXX=PATH/em++ CC=PATH/emcc ./configure [options]
24
-
25
- where PATH is the path to this file.
26
-
27
- EMMAKEN_JUST_CONFIGURE tells emcc that it is being run in ./configure,
28
- so it should relay everything to gcc/g++. You should not define that when
29
- running make, of course.
30
-
31
- After setting that up, run your build system normally.
32
-
33
- Note the appearance of em++ instead of emcc
34
- for the C++ compiler. This is needed for cases where we get
35
- a C++ file with a C extension, in which case CMake can be told
36
- to run g++ on it despite the .c extension, see
37
-
38
- https://github.com/kripken/emscripten/issues/6
39
-
40
- (If a similar situation occurs with ./configure, you can do the same there too.)
41
-
42
- emcc can be influenced by a few environment variables:
43
-
44
- EMMAKEN_NO_SDK - Will tell emcc *not* to use the emscripten headers. Instead
45
- your system headers will be used.
46
-
47
- EMMAKEN_COMPILER - The compiler to be used, if you don't want the default clang.
48
- '''
49
-
50
- import os, sys, shutil, tempfile, subprocess, shlex, time, re, logging
51
- from subprocess import PIPE, STDOUT
52
- from tools import shared, jsrun
53
- from tools.shared import Compression, execute, suffix, unsuffixed, unsuffixed_basename, WINDOWS
54
- from tools.response_file import read_response_file
55
-
56
- # endings = dot + a suffix, safe to test by filename.endswith(endings)
57
- C_ENDINGS = ('.c', '.C')
58
- CXX_ENDINGS = ('.cpp', '.cxx', '.cc', '.CPP', '.CXX', '.CC')
59
- SOURCE_ENDINGS = C_ENDINGS + CXX_ENDINGS + ('.m', '.mm')
60
- BITCODE_ENDINGS = ('.bc', '.o', '.obj')
61
- DYNAMICLIB_ENDINGS = ('.dylib', '.so', '.dll')
62
- STATICLIB_ENDINGS = ('.a',)
63
- ASSEMBLY_ENDINGS = ('.ll',)
64
-
65
- LIB_PREFIXES = ('', 'lib')
66
-
67
- JS_CONTAINING_SUFFIXES = ('js', 'html')
68
-
69
- # Mapping of emcc opt levels to llvm opt levels. We use llvm opt level 3 in emcc opt
70
- # levels 2 and 3 (emcc 3 is unsafe opts, so unsuitable for the only level to get
71
- # llvm opt level 3, and speed-wise emcc level 2 is already the slowest/most optimizing
72
- # level)
73
- LLVM_OPT_LEVEL = {
74
- 0: 0,
75
- 1: 1,
76
- 2: 3,
77
- 3: 3,
78
- }
79
-
80
- DEBUG = os.environ.get('EMCC_DEBUG')
81
- if DEBUG == "0":
82
- DEBUG = None
83
-
84
- TEMP_DIR = os.environ.get('EMCC_TEMP_DIR')
85
- LEAVE_INPUTS_RAW = os.environ.get('EMCC_LEAVE_INPUTS_RAW') # Do not compile .ll files into .bc, just compile them with emscripten directly
86
- # Not recommended, this is mainly for the test runner, or if you have some other
87
- # specific need.
88
- # One major limitation with this mode is that libc and libc++ cannot be
89
- # added in. Also, LLVM optimizations will not be done, nor dead code elimination
90
- AUTODEBUG = os.environ.get('EMCC_AUTODEBUG') # If set to 1, we will run the autodebugger (the automatic debugging tool, see tools/autodebugger).
91
- # Note that this will disable inclusion of libraries. This is useful because including
92
- # dlmalloc makes it hard to compare native and js builds
93
- EMCC_CFLAGS = os.environ.get('EMCC_CFLAGS') # Additional compiler flags that we treat as if they were passed to us on the commandline
94
-
95
- logging.debug('invocation: ' + ' '.join(sys.argv) + (' + ' + EMCC_CFLAGS if EMCC_CFLAGS else ''))
96
- if EMCC_CFLAGS: sys.argv.append(EMCC_CFLAGS)
97
-
98
- if DEBUG and LEAVE_INPUTS_RAW: logging.warning('leaving inputs raw')
99
-
100
- stdout = PIPE if not DEBUG else None # suppress output of child processes
101
- stderr = PIPE if not DEBUG else None # unless we are in DEBUG mode
102
-
103
- shared.check_sanity(force=DEBUG)
104
-
105
- # Handle some global flags
106
-
107
- if len(sys.argv) == 1:
108
- logging.warning('no input files')
109
- exit(1)
110
-
111
- # read response files very early on
112
- response_file = True
113
- while response_file:
114
- response_file = None
115
- for index in range(1, len(sys.argv)):
116
- if sys.argv[index][0] == '@':
117
- # found one, loop again next time
118
- response_file = True
119
- extra_args = read_response_file(sys.argv[index])
120
- # slice in extra_args in place of the response file arg
121
- sys.argv[index:index+1] = extra_args
122
- break
123
-
124
- if len(sys.argv) == 1 or '--help' in sys.argv:
125
- this = os.path.basename('em++' if os.environ.get('EMMAKEN_CXX') else 'emcc')
126
-
127
- print '''%s [options] file...
128
-
129
- Most normal gcc/g++ options will work, for example:
130
- --help Display this information
131
- --version Display compiler version information
132
-
133
- Options that are modified or new in %s include:
134
-
135
- -O0 No optimizations (default). This is the recommended
136
- setting for starting to port a project, as it
137
- includes various assertions.
138
-
139
- -O1 Simple optimizations, including asm.js, LLVM -O1
140
- optimizations, relooping, and no runtime assertions
141
- or C++ exception catching (to re-enable
142
- C++ exception catching, use
143
- -s DISABLE_EXCEPTION_CATCHING=0 ), and enables
144
-
145
- -s ALIASING_FUNCTION_POINTERS=1
146
-
147
- This is the recommended setting when you want a
148
- reasonably optimized build that is generated as
149
- quickly as possible (it is much faster than -O2).
150
-
151
- (Note: for details on the affects of different
152
- opt levels, see apply_opt_level() in
153
- tools/shared.py and also src/settings.js.)
154
-
155
- -O2 As -O1, plus various js-level optimizations and
156
- LLVM -O3 optimizations. This is the recommended
157
- setting for a release build: slower compilation
158
- time in return for the smallest and fastest
159
- output.
160
-
161
- -O3 As -O2, plus dangerous optimizations that may
162
- break the generated code! This adds
163
-
164
- -s FORCE_ALIGNED_MEMORY=1
165
- -s DOUBLE_MODE=0
166
- -s PRECISE_I64_MATH=0
167
- --closure 1
168
- --llvm-lto 3
169
-
170
- This is not recommended at all. A better idea
171
- is to try each of these separately on top of
172
- -O2 to see what works. See the wiki and
173
- src/settings.js (for the -s options) for more
174
- information.
175
-
176
- -s OPTION=VALUE JavaScript code generation option passed
177
- into the emscripten compiler. For the
178
- available options, see src/settings.js
179
- Note that for options that are lists, you
180
- need quotation marks in most shells, for
181
- example
182
-
183
- -s RUNTIME_LINKED_LIBS="['liblib.so']"
184
-
185
- or
186
-
187
- -s "RUNTIME_LINKED_LIBS=['liblib.so']"
188
-
189
- (without the external "s in either of those,
190
- you would get an error)
191
-
192
- You can also specify a file from which the
193
- value would be read, for example,
194
-
195
- -s DEAD_FUNCTIONS=@/path/to/file
196
-
197
- The contents of /path/to/file will be read,
198
- JSON.parsed and set into DEAD_FUNCTIONS (so
199
- the file could contain
200
-
201
- ["_func1", "func2"]
202
-
203
- ). Note that the path must be absolute, not
204
- relative.
205
-
206
- -g Use debug info. When compiling to bitcode,
207
- this is the same as in clang and gcc, it
208
- adds debug info to the object files. When
209
- compiling from source to JS or bitcode to JS,
210
- it is equivalent to -g3 (keep code as debuggable
211
- as possible, except for discarding LLVM
212
- debug info, so no C/C++ line numbers; use
213
- -g4 to get line number debugging info in JS).
214
-
215
- -g<level> When compiling from bitcode to JS, we can
216
- keep the code debuggable to different
217
- degrees. Each of these levels builds on the
218
- previous:
219
-
220
- -g0 Make no effort to keep code debuggable.
221
- Will discard LLVM debug info. (default
222
- in -O1+)
223
- -g1 Preserve (do not minify) whitespace
224
- -g2 Preserve function names
225
- -g3 Preserve variable names
226
- -g4 Preserve LLVM debug info (if -g was
227
- used when compiling the C/C++ sources),
228
- show line number debug comments, and
229
- generate source maps. This is the highest
230
- level of debuggability. Note that this
231
- may make -O1 and above significantly
232
- slower because JS optimization will be
233
- limited to 1 core. (default in -O0)
234
-
235
- --typed-arrays <mode> 0: No typed arrays
236
- 1: Parallel typed arrays
237
- 2: Shared (C-like) typed arrays (default)
238
-
239
- --js-opts 0: Prevent JS optimizer from running
240
- 1: Use JS optimizer (default)
241
-
242
- --llvm-opts <level> 0: No LLVM optimizations (default in -O0)
243
- 1: -O1 LLVM optimizations (default in -O1)
244
- 2: -O2 LLVM optimizations
245
- 3: -O3 LLVM optimizations (default in -O2+)
246
-
247
- You can also specify arbitrary LLVM options, e.g.
248
-
249
- --llvm-opts "['-O3', '-somethingelse']"
250
-
251
- --llvm-lto <level> 0: No LLVM LTO (default)
252
- 1: LLVM LTO is performed
253
- 2: We combine all the bitcode and run LLVM opt -O3
254
- on that (which optimizes across modules, but is
255
- not the same as normal LTO), but do not do normal
256
- LTO
257
- 3: We do both 2 and then 1
258
- Note: If LLVM optimizations are not run
259
- (see --llvm-opts), setting this has no
260
- effect.
261
-
262
- Note that LLVM LTO is not perfectly stable yet,
263
- and can can cause code to behave incorrectly.
264
-
265
- --closure <on> 0: No closure compiler (default in -O2 and below)
266
- 1: Run closure compiler. This greatly reduces
267
- code size and may in some cases increase
268
- runtime speed (although the opposite can also
269
- occur). Note that it takes time to run, and
270
- may require some changes to the code. This
271
- is run by default in -O3.
272
-
273
- In asm.js mode, closure will only be used on the
274
- 'shell' code around the compiled code (the
275
- compiled code will be processed by the custom
276
- asm.js minifier).
277
-
278
- Note: If closure compiler hits an out-of-memory,
279
- try adjusting JAVA_HEAP_SIZE in the environment
280
- (for example, to 4096m for 4GB).
281
-
282
- Note: Closure is only run if js opts are being
283
- done (-O2 or above, or --js-opts 1).
284
-
285
- --js-transform <cmd> <cmd> will be called on the generated code
286
- before it is optimized. This lets you modify
287
- the JavaScript, for example adding some code
288
- or removing some code, in a way that those
289
- modifications will be optimized together with
290
- the generated code properly. <cmd> will be
291
- called with the filename of the generated
292
- code as a parameter; to modify the code, you
293
- can read the original data and then append to
294
- it or overwrite it with the modified data.
295
- <cmd> is interpreted as a space-separated
296
- list of arguments, for example, <cmd> of
297
- "python processor.py" will cause a python
298
- script to be run.
299
-
300
- --pre-js <file> A file whose contents are added before the
301
- generated code. This is done *before*
302
- optimization, so it will be minified
303
- properly if closure compiler is run.
304
-
305
- --post-js <file> A file whose contents are added after the
306
- generated code This is done *before*
307
- optimization, so it will be minified
308
- properly if closure compiler is run.
309
-
310
- --embed-file <file> A file to embed inside the generated
311
- JavaScript. The compiled code will be able
312
- to access the file in the current directory
313
- with the same name as given here. So if
314
- you do --embed-file dir/file.dat, then
315
- (1) dir/file.dat must exist relative to
316
- where you run emcc, and (2) your compiled
317
- code will be able to find the file by
318
- reading that same path, dir/file.dat.
319
- If a directory is passed here, its entire
320
- contents will be embedded.
321
-
322
- --preload-file <name> A file to preload before running the
323
- compiled code asynchronously. Otherwise
324
- similar to --embed-file, except that this
325
- option is only relevant when generating
326
- HTML (it uses asynchronous binary XHRs),
327
- or JS that will be used in a web page.
328
- If a directory is passed here, its entire
329
- contents will be preloaded.
330
- Preloaded files are stored in filename.data,
331
- where filename.html is the main file you
332
- are compiling to. To run your code, you
333
- will need both the .html and the .data.
334
-
335
- emcc runs tools/file_packager.py to do the
336
- actual packaging of embedded and preloaded
337
- files. You can run the file packager yourself
338
- if you want, see docs inside that file. You
339
- should then put the output of the file packager
340
- in an emcc --pre-js, so that it executes before
341
- your main compiled code (or run it before in
342
- some other way).
343
-
344
- For more docs on the options --preload-file
345
- accepts, see https://github.com/kripken/emscripten/wiki/Filesystem-Guide
346
-
347
- --exclude-file <name> Files and directories to be excluded from
348
- --embed-file and --preload-file
349
- wildcard is supported
350
-
351
- --compression <codec> **THIS OPTION IS DEPRECATED**
352
-
353
- Compress both the compiled code and embedded/
354
- preloaded files. <codec> should be a triple,
355
-
356
- <native_encoder>,<js_decoder>,<js_name>
357
-
358
- where native_encoder is a native executable
359
- that compresses stdin to stdout (the simplest
360
- possible interface), js_decoder is a
361
- JavaScript file that implements a decoder,
362
- and js_name is the name of the function to
363
- call in the decoder file (which should
364
- receive an array/typed array and return
365
- an array/typed array.
366
- Compression only works when generating HTML.
367
- When compression is on, all filed specified
368
- to be preloaded are compressed in one big
369
- archive, which is given the same name as the
370
- output HTML but with suffix .data.compress
371
-
372
- --minify 0 Identical to -g1
373
-
374
- --split <size> Splits the resulting javascript file into pieces
375
- to ease debugging. This option only works if
376
- Javascript is generated (target -o <name>.js).
377
- Files with function declarations must be loaded
378
- before main file upon execution.
379
-
380
- Without "-g" option:
381
- Creates files with function declarations up
382
- to the given size with the suffix
383
- "_functions.partxxx.js" and a main file with
384
- the suffix ".js".
385
-
386
- With "-g" option:
387
- Recreates the directory structure of the C
388
- source files and stores function declarations
389
- in their respective C files with the suffix
390
- ".js". If such a file exceeds the given size,
391
- files with the suffix ".partxxx.js" are created.
392
- The main file resides in the base directory and
393
- has the suffix ".js".
394
-
395
- --bind Compiles the source code using the "embind"
396
- bindings approach, which connects C/C++ and JS.
397
-
398
- --ignore-dynamic-linking Normally emcc will treat dynamic linking like
399
- static linking, by linking in the code from
400
- the dynamic library. This fails if the same
401
- dynamic library is linked more than once.
402
- With this option, dynamic linking is ignored,
403
- which allows the build system to proceed without
404
- errors. However, you will need to manually
405
- link to the shared libraries later on yourself.
406
-
407
- --shell-file <path> The path name to a skeleton HTML file used
408
- when generating HTML output. The shell file
409
- used needs to have this token inside it:
410
- {{{ SCRIPT }}}
411
- (see src/shell.html for an example)
412
- Note that this argument is ignored if a
413
- target other than HTML is specified using
414
- the -o option.
415
-
416
- --js-library <lib> A JavaScript library to use in addition to
417
- those in Emscripten's src/library_*
418
-
419
- -v Turns on verbose output. This will pass
420
- -v to Clang, and also enable EMCC_DEBUG
421
- to details emcc's operations
422
-
423
- --jcache Use a JavaScript cache. This is disabled by
424
- default. When enabled, emcc will store the
425
- results of compilation in a cache and check
426
- the cache when compiling later, something
427
- like what ccache does. This allows incremental
428
- builds - where you are compiling a large
429
- program but only modified a small part of it -
430
- to be much faster (at the cost of more disk
431
- IO for cache accesses). Note that you need
432
- to enable --jcache for both loading and saving
433
- of data, so you must enable it on a full build
434
- for a later incremental build (where you also
435
- enable it) to be sped up.
436
-
437
- Caching works separately on 4 parts of compilation:
438
- 'pre' which is types and global variables; that
439
- information is then fed into 'funcs' which are
440
- the functions (which we parallelize), and then
441
- 'post' which adds final information based on
442
- the functions (e.g., do we need long64 support
443
- code). Finally, 'jsfuncs' are JavaScript-level
444
- optimizations. Each of the 4 parts can be cached
445
- separately, but note that they can affect each
446
- other: If you recompile a single C++ file that
447
- changes a global variable - e.g., adds, removes
448
- or modifies a global variable, say by adding
449
- a printf or by adding a compile-time timestamp,
450
- then 'pre' cannot be loaded from the cache. And
451
- since 'pre's output is sent to 'funcs' and 'post',
452
- they will get invalidated as well, and only
453
- 'jsfuncs' will be cached. So avoid modifying
454
- globals to let caching work fully.
455
-
456
- To work around the problem mentioned in the
457
- previous paragraph, you can use
458
-
459
- emscripten_jcache_printf
460
-
461
- when adding debug printfs to your code. That
462
- function is specially preprocessed so that it
463
- does not create a constant string global for
464
- its first argument. See emscripten.h for more
465
- details. Note in particular that you need to
466
- already have a call to that function in your
467
- code *before* you add one and do an incremental
468
- build, so that adding an external reference
469
- (also a global property) does not invalidate
470
- everything.
471
-
472
- Note that you should use -g during the linking
473
- stage (bitcode to JS), for jcache to work
474
- (otherwise, JS minification can confuse it).
475
-
476
- --clear-cache Manually clears the cache of compiled
477
- emscripten system libraries (libc++,
478
- libc++abi, libc). This is normally
479
- handled automatically, but if you update
480
- llvm in-place (instead of having a different
481
- directory for a new version), the caching
482
- mechanism can get confused. Clearing the
483
- cache can fix weird problems related to
484
- cache incompatibilities, like clang failing
485
- to link with library files. This also clears
486
- other cached data like the jcache and
487
- the bootstrapped relooper. After the cache
488
- is cleared, this process will exit.
489
-
490
- --save-bc PATH When compiling to JavaScript or HTML, this
491
- option will save a copy of the bitcode to
492
- the specified path. The bitcode will include
493
- all files being linked, including standard
494
- libraries, and after any link-time optimizations
495
- (if any).
496
-
497
- --memory-init-file <on> If on, we generate a separate memory initialization
498
- file. This is more efficient than storing the
499
- memory initialization data embedded inside
500
- JavaScript as text. (default is off)
501
-
502
- -Wno-warn-absolute-paths If not specified, the compiler will warn about any
503
- uses of absolute paths in -I and -L command line
504
- directives. Pass this flag on the command line
505
- to hide these warnings and acknowledge that the
506
- explicit use of absolute paths is intentional.
507
-
508
- --proxy-to-worker Generates both html and js files. The main
509
- program is in js, and the html proxies to/from it.
510
-
511
- --emrun Enables the generated output to be aware of the
512
- emrun command line tool. This allows stdout, stderr
513
- and exit(returncode) capture when running the
514
- generated application through emrun.
515
-
516
- --em-config Specifies the location of the .emscripten configuration
517
- file for the current compiler run. If not specified,
518
- the environment variable EM_CONFIG is read for this
519
- file, and if that is not set, the default location
520
- ~/.emscripten is assumed.
521
-
522
- --default-obj-ext .ext Specifies the file suffix to generate if the location
523
- of a directory name is passed to -o directive, e.g.
524
- emcc -c a.c -o dir/
525
- will by default generate an output name 'dir/a.o',
526
- but this cmdline param can be passed to generate a
527
- file with a custom suffix 'dir/a.ext'.
528
-
529
- The target file, if specified (-o <target>), defines what will
530
- be generated:
531
-
532
- <name>.js JavaScript
533
- <name>.html HTML + side JavaScript file (<name>.js)
534
- (JS on the side improves page load time)
535
- <name>.bc LLVM bitcode (default)
536
- <name>.o LLVM bitcode (same as .bc)
537
-
538
- (Note that if --memory-init-file is used, then in addition to a
539
- .js or .html file that is generated, a .mem file will also appear.)
540
-
541
- The -c option (which tells gcc not to run the linker) will
542
- cause LLVM bitcode to be generated, as %s only generates
543
- JavaScript in the final linking stage of building.
544
-
545
- The input file(s) can be either source code files that
546
- Clang can handle (C or C++), LLVM bitcode in binary form,
547
- or LLVM assembly files in human-readable form.
548
-
549
- emcc is affected by several environment variables. For details, view
550
- the source of emcc (search for 'os.environ').
551
-
552
- emcc: supported targets: llvm bitcode, javascript, NOT elf
553
- (autoconf likes to see elf above to enable shared object support)
554
- ''' % (this, this, this)
555
- exit(0)
556
-
557
- elif sys.argv[1] == '--version':
558
- revision = '(unknown revision)'
559
- here = os.getcwd()
560
- os.chdir(shared.path_from_root())
561
- try:
562
- revision = execute(['git', 'show'], stdout=PIPE, stderr=PIPE)[0].split('\n')[0]
563
- except:
564
- pass
565
- finally:
566
- os.chdir(here)
567
- print '''emcc (Emscripten GCC-like replacement) %s (%s)
568
- Copyright (C) 2013 the Emscripten authors (see AUTHORS.txt)
569
- This is free and open source software under the MIT license.
570
- There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
571
- ''' % (shared.EMSCRIPTEN_VERSION, revision)
572
- exit(0)
573
-
574
- elif len(sys.argv) == 2 and sys.argv[1] == '-v': # -v with no inputs
575
- print 'emcc (Emscripten GCC-like replacement + linker emulating GNU ld ) %s' % shared.EMSCRIPTEN_VERSION
576
- exit(subprocess.call([shared.CLANG, '-v']))
577
-
578
- def is_minus_s_for_emcc(newargs,i):
579
- assert newargs[i] == '-s'
580
- if i+1 < len(newargs) and '=' in newargs[i+1]: # -s OPT=VALUE is for us, -s by itself is a linker option
581
- return True
582
- else:
583
- logging.warning('treating -s as linker option and not as -s OPT=VALUE for js compilation')
584
- return False
585
-
586
- # If this is a configure-type thing, do not compile to JavaScript, instead use clang
587
- # to compile to a native binary (using our headers, so things make sense later)
588
- CONFIGURE_CONFIG = (os.environ.get('EMMAKEN_JUST_CONFIGURE') or 'conftest.c' in sys.argv) and not os.environ.get('EMMAKEN_JUST_CONFIGURE_RECURSE')
589
- CMAKE_CONFIG = 'CMakeFiles/cmTryCompileExec.dir' in ' '.join(sys.argv)# or 'CMakeCCompilerId' in ' '.join(sys.argv)
590
- if CONFIGURE_CONFIG or CMAKE_CONFIG:
591
- debug_configure = 0 # XXX use this to debug configure stuff. ./configure's generally hide our normal output including stderr so we write to a file
592
- use_js = os.environ.get('EMCONFIGURE_JS') # whether we fake configure tests using clang - the local, native compiler - or not. if not we generate JS and use node with a shebang
593
- # neither approach is perfect, you can try both, but may need to edit configure scripts in some cases
594
- # XXX False is not fully tested yet
595
-
596
- if debug_configure:
597
- tempout = '/tmp/emscripten_temp/out'
598
- if not os.path.exists(tempout):
599
- open(tempout, 'w').write('//\n')
600
-
601
- src = None
602
- for arg in sys.argv:
603
- if arg.endswith('.c'):
604
- try:
605
- src = open(arg).read()
606
- if debug_configure: open(tempout, 'a').write('============= ' + arg + '\n' + src + '\n=============\n\n')
607
- except:
608
- pass
609
- elif arg.endswith('.s'):
610
- if debug_configure: open(tempout, 'a').write('(compiling .s assembly, must use clang\n')
611
- use_js = 0
612
- elif arg == '-E':
613
- use_js = 0
614
-
615
- if src:
616
- if 'fopen' in src and '"w"' in src:
617
- use_js = 0 # we cannot write to files from js!
618
- if debug_configure: open(tempout, 'a').write('Forcing clang since uses fopen to write\n')
619
-
620
- compiler = os.environ.get('CONFIGURE_CC') or (shared.CLANG if not use_js else shared.EMCC) # if CONFIGURE_CC is defined, use that. let's you use local gcc etc. if you need that
621
- if not ('CXXCompiler' in ' '.join(sys.argv) or os.environ.get('EMMAKEN_CXX')):
622
- compiler = shared.to_cc(compiler)
623
-
624
- def filter_emscripten_options(argv):
625
- idx = 0
626
- skip_next = False
627
- for el in argv:
628
- if skip_next:
629
- skip_next = False
630
- idx += 1
631
- continue
632
- if not use_js and el == '-s' and is_minus_s_for_emcc(argv, idx): # skip -s X=Y if not using js for configure
633
- skip_next = True
634
- else:
635
- yield el
636
- idx += 1
637
-
638
- cmd = [compiler] + list(filter_emscripten_options(sys.argv[1:]))
639
- if not use_js: cmd += shared.EMSDK_OPTS + ['-DEMSCRIPTEN']
640
- if use_js: cmd += ['-s', 'ERROR_ON_UNDEFINED_SYMBOLS=1'] # configure tests should fail when an undefined symbol exists
641
-
642
- logging.debug('just configuring: ' + ' '.join(cmd))
643
- if debug_configure: open(tempout, 'a').write('emcc, just configuring: ' + ' '.join(cmd) + '\n\n')
644
-
645
- if not use_js:
646
- exit(subprocess.call(cmd))
647
- else:
648
- only_object = '-c' in cmd
649
- target = None
650
- for i in range(len(cmd)-1):
651
- if cmd[i] == '-o':
652
- if not only_object:
653
- cmd[i+1] += '.js'
654
- target = cmd[i+1]
655
- break
656
- print 't1', target
657
- if not target:
658
- target = 'a.out.js'
659
- print 't2', target, only_object
660
- os.environ['EMMAKEN_JUST_CONFIGURE_RECURSE'] = '1'
661
- ret = subprocess.call(cmd)
662
- os.environ['EMMAKEN_JUST_CONFIGURE_RECURSE'] = ''
663
- if not os.path.exists(target): exit(1)
664
- if target.endswith('.js'):
665
- shutil.copyfile(target, target[:-3])
666
- target = target[:-3]
667
- src = open(target).read()
668
- full_node = ' '.join(shared.listify(shared.NODE_JS))
669
- if os.path.sep not in full_node:
670
- full_node = '/usr/bin/' + full_node # TODO: use whereis etc. And how about non-*NIX?
671
- open(target, 'w').write('#!' + full_node + '\n' + src) # add shebang
672
- import stat
673
- os.chmod(target, stat.S_IMODE(os.stat(target).st_mode) | stat.S_IXUSR) # make executable
674
- exit(ret)
675
-
676
- if os.environ.get('EMMAKEN_COMPILER'):
677
- CXX = os.environ['EMMAKEN_COMPILER']
678
- else:
679
- CXX = shared.CLANG
680
-
681
- CC = shared.to_cc(CXX)
682
-
683
- # If we got here from a redirection through emmakenxx.py, then force a C++ compiler here
684
- if os.environ.get('EMMAKEN_CXX'):
685
- CC = CXX
686
-
687
- CC_ADDITIONAL_ARGS = shared.COMPILER_OPTS
688
-
689
- EMMAKEN_CFLAGS = os.environ.get('EMMAKEN_CFLAGS')
690
- if EMMAKEN_CFLAGS: sys.argv += shlex.split(EMMAKEN_CFLAGS)
691
-
692
- # ---------------- Utilities ---------------
693
-
694
- seen_names = {}
695
- def uniquename(name):
696
- if name not in seen_names:
697
- seen_names[name] = str(len(seen_names))
698
- return unsuffixed(name) + '_' + seen_names[name] + (('.' + suffix(name)) if suffix(name) else '')
699
-
700
- # ---------------- End configs -------------
701
-
702
- if len(sys.argv) == 1 or sys.argv[1] in ['x', 't']:
703
- # noop ar
704
- logging.debug('just ar')
705
- sys.exit(0)
706
-
707
- use_cxx = True
708
- header = False # pre-compiled headers. We fake that by just copying the file
709
-
710
- for i in range(1, len(sys.argv)):
711
- arg = sys.argv[i]
712
- if not arg.startswith('-'):
713
- if arg.endswith(('.c','.m')):
714
- use_cxx = False
715
- if arg.endswith('.h') and sys.argv[i-1] != '-include':
716
- header = True
717
-
718
- if '-M' in sys.argv or '-MM' in sys.argv:
719
- # Just output dependencies, do not compile. Warning: clang and gcc behave differently with -MF! (clang seems to not recognize it)
720
- cmd = [CC] + shared.COMPILER_OPTS + sys.argv[1:]
721
- logging.debug('just dependencies: ' + ' '.join(cmd))
722
- exit(subprocess.call(cmd))
723
-
724
- if '-E' in sys.argv:
725
- # Just run the preprocessor
726
- cmd = [CC] + sys.argv[1:]
727
- logging.debug('just preprocessor ' + ' '.join(cmd))
728
- exit(subprocess.call(cmd))
729
-
730
- # Check if a target is specified
731
- target = None
732
- for i in range(len(sys.argv)-1):
733
- if sys.argv[i].startswith('-o='):
734
- raise Exception('Invalid syntax: do not use -o=X, use -o X')
735
-
736
- if sys.argv[i] == '-o':
737
- target = sys.argv[i+1]
738
- sys.argv = sys.argv[:i] + sys.argv[i+2:]
739
- break
740
-
741
- specified_target = target
742
- target = specified_target if specified_target is not None else 'a.out.js' # specified_target is the user-specified one, target is what we will generate
743
- target_basename = unsuffixed_basename(target)
744
-
745
- if '.' in target:
746
- final_suffix = target.split('.')[-1]
747
- else:
748
- final_suffix = ''
749
-
750
- if header: # header or such
751
- if len(sys.argv) >= 3: # if there is a source and a target, then copy, otherwise do nothing
752
- sys.argv = filter(lambda arg: not arg.startswith('-I'), sys.argv)
753
- logging.debug('Just copy:' + sys.argv[-1] + target)
754
- shutil.copy(sys.argv[-1], target)
755
- else:
756
- logging.debug('No-op.')
757
- exit(0)
758
-
759
- if TEMP_DIR:
760
- temp_dir = TEMP_DIR
761
- if os.path.exists(temp_dir):
762
- shutil.rmtree(temp_dir) # clear it
763
- os.makedirs(temp_dir)
764
- else:
765
- temp_root = shared.TEMP_DIR
766
- if not os.path.exists(temp_root):
767
- os.makedirs(temp_root)
768
- temp_dir = tempfile.mkdtemp(dir=temp_root)
769
-
770
- def in_temp(name):
771
- return os.path.join(temp_dir, os.path.basename(name))
772
-
773
- # Parses the essential suffix of a filename, discarding Unix-style version numbers in the name. For example for 'libz.so.1.2.8' returns '.so'
774
- def filename_type_suffix(filename):
775
- for i in reversed(filename.split('.')[1:]):
776
- if not i.isdigit():
777
- return i
778
- return ''
779
-
780
- def filename_type_ending(filename):
781
- suffix = filename_type_suffix(filename)
782
- return '' if not suffix else ('.' + suffix)
783
-
784
- try:
785
- call = CXX if use_cxx else CC
786
-
787
- ## Parse args
788
-
789
- newargs = sys.argv[1:]
790
-
791
- opt_level = 0
792
- debug_level = 0
793
- js_opts = None
794
- llvm_opts = None
795
- llvm_lto = None
796
- closure = None
797
- js_transform = None
798
- pre_js = ''
799
- post_js = ''
800
- split_js_file = None
801
- preload_files = []
802
- embed_files = []
803
- exclude_files = []
804
- compression = None
805
- ignore_dynamic_linking = False
806
- shell_path = shared.path_from_root('src', 'shell.html')
807
- js_libraries = []
808
- bind = False
809
- emrun = False
810
- jcache = False
811
- save_bc = False
812
- memory_init_file = False
813
- use_preload_cache = False
814
- no_heap_copy = False
815
- proxy_to_worker = False
816
- default_object_extension = '.o'
817
-
818
- if use_cxx:
819
- default_cxx_std = '-std=c++03' # Enforce a consistent C++ standard when compiling .cpp files, if user does not specify one on the cmdline.
820
- else:
821
- default_cxx_std = '' # Compiling C code with .c files, don't enforce a default C++ std.
822
-
823
- def check_bad_eq(arg):
824
- assert '=' not in arg, 'Invalid parameter (do not use "=" with "--" options)'
825
-
826
- absolute_warning_shown = False
827
-
828
- # Scan for warning suppression message in advance from other cmdline flags, so that it works even if -I or -L directives are present before this.
829
- for i in range(len(newargs)):
830
- if newargs[i] == '-Wno-warn-absolute-paths':
831
- newargs[i] = ''
832
- absolute_warning_shown = True
833
-
834
- settings_changes = []
835
-
836
- def validate_arg_level(level_string, max_level, err_msg):
837
- try:
838
- level = int(level_string)
839
- assert 0 <= level <= max_level
840
- except:
841
- raise Exception(err_msg)
842
- return level
843
-
844
- for i in range(len(newargs)):
845
- newargs[i] = newargs[i].strip() # On Windows Vista (and possibly others), excessive spaces in the command line leak into the items in this array, so trim e.g. 'foo.cpp ' -> 'foo.cpp'
846
- if newargs[i].startswith('-O'):
847
- # Let -O default to -O2, which is what gcc does.
848
- requested_level = newargs[i][2:] or '2'
849
- if requested_level == 's':
850
- requested_level = 2
851
- settings_changes.append('INLINING_LIMIT=50')
852
- opt_level = validate_arg_level(requested_level, 3, 'Invalid optimization level: ' + newargs[i])
853
- newargs[i] = ''
854
- elif newargs[i].startswith('--js-opts'):
855
- check_bad_eq(newargs[i])
856
- js_opts = eval(newargs[i+1])
857
- newargs[i] = ''
858
- newargs[i+1] = ''
859
- elif newargs[i].startswith('--llvm-opts'):
860
- check_bad_eq(newargs[i])
861
- llvm_opts = eval(newargs[i+1])
862
- newargs[i] = ''
863
- newargs[i+1] = ''
864
- elif newargs[i].startswith('--llvm-lto'):
865
- check_bad_eq(newargs[i])
866
- llvm_lto = eval(newargs[i+1])
867
- newargs[i] = ''
868
- newargs[i+1] = ''
869
- elif newargs[i].startswith('--closure'):
870
- check_bad_eq(newargs[i])
871
- closure = int(newargs[i+1])
872
- newargs[i] = ''
873
- newargs[i+1] = ''
874
- elif newargs[i].startswith('--js-transform'):
875
- check_bad_eq(newargs[i])
876
- js_transform = newargs[i+1]
877
- newargs[i] = ''
878
- newargs[i+1] = ''
879
- elif newargs[i].startswith('--pre-js'):
880
- check_bad_eq(newargs[i])
881
- pre_js += open(newargs[i+1]).read() + '\n'
882
- newargs[i] = ''
883
- newargs[i+1] = ''
884
- elif newargs[i].startswith('--post-js'):
885
- check_bad_eq(newargs[i])
886
- post_js += open(newargs[i+1]).read() + '\n'
887
- newargs[i] = ''
888
- newargs[i+1] = ''
889
- elif newargs[i].startswith('--minify'):
890
- check_bad_eq(newargs[i])
891
- assert newargs[i+1] == '0', '0 is the only supported option for --minify; 1 has been deprecated'
892
- debug_level = max(1, debug_level)
893
- newargs[i] = ''
894
- newargs[i+1] = ''
895
- elif newargs[i].startswith('--split'):
896
- check_bad_eq(newargs[i])
897
- split_js_file = int(newargs[i+1])
898
- newargs[i] = ''
899
- newargs[i+1] = ''
900
- elif newargs[i].startswith('-g'):
901
- requested_level = newargs[i][2:] or '3'
902
- debug_level = validate_arg_level(requested_level, 4, 'Invalid debug level: ' + newargs[i])
903
- newargs[i] = '-g' # we'll need this to get LLVM debug info
904
- elif newargs[i] == '--bind':
905
- bind = True
906
- newargs[i] = ''
907
- if default_cxx_std:
908
- default_cxx_std = '-std=c++11' # Force C++11 for embind code, but only if user has not explicitly overridden a standard.
909
- elif newargs[i].startswith('-std='):
910
- default_cxx_std = '' # User specified a standard to use, clear Emscripten from specifying it.
911
- elif newargs[i].startswith('--embed-file'):
912
- check_bad_eq(newargs[i])
913
- embed_files.append(newargs[i+1])
914
- newargs[i] = ''
915
- newargs[i+1] = ''
916
- elif newargs[i].startswith('--preload-file'):
917
- check_bad_eq(newargs[i])
918
- preload_files.append(newargs[i+1])
919
- newargs[i] = ''
920
- newargs[i+1] = ''
921
- elif newargs[i].startswith('--exclude-file'):
922
- check_bad_eq(newargs[i])
923
- exclude_files.append(newargs[i+1])
924
- newargs[i] = ''
925
- newargs[i+1] = ''
926
- elif newargs[i].startswith('--compression'):
927
- logging.warning('--compression is deprecated. Instead, it is recommended you use native gzip compression in your webserver')
928
- check_bad_eq(newargs[i])
929
- parts = newargs[i+1].split(',')
930
- assert len(parts) == 3, '--compression requires specifying native_encoder,js_decoder,js_name - see emcc --help. got: %s' % newargs[i+1]
931
- def locate(tool):
932
- if WINDOWS:
933
- if os.path.exists(tool+'.exe'):
934
- return tool+'.exe'
935
- if os.path.exists(tool+'.bat'):
936
- return tool+'.bat'
937
- if os.path.exists(tool+'.cmd'):
938
- return tool+'.cmd'
939
- return tool
940
- Compression.encoder = locate(parts[0])
941
- Compression.decoder = locate(parts[1])
942
- Compression.js_name = parts[2]
943
- assert os.path.exists(Compression.encoder), 'native encoder %s does not exist' % Compression.encoder
944
- assert os.path.exists(Compression.decoder), 'js decoder %s does not exist' % Compression.decoder
945
- Compression.on = True
946
- newargs[i] = ''
947
- newargs[i+1] = ''
948
- elif newargs[i].startswith('--use-preload-cache'):
949
- use_preload_cache = True
950
- newargs[i] = ''
951
- elif newargs[i].startswith('--no-heap-copy'):
952
- no_heap_copy = True
953
- newargs[i] = ''
954
- elif newargs[i] == '--ignore-dynamic-linking':
955
- ignore_dynamic_linking = True
956
- newargs[i] = ''
957
- elif newargs[i] == '-v':
958
- shared.COMPILER_OPTS += ['-v']
959
- os.environ['EMCC_DEBUG'] = '1' # send to child processes too
960
- if DEBUG != 1:
961
- # swap in debug logging
962
- DEBUG = 1
963
- shared.set_logging()
964
- logging.debug('invocation: ' + ' '.join(sys.argv))
965
- shared.apply_configuration() # reset config to pick up change
966
- newargs[i] = ''
967
- elif newargs[i].startswith('--shell-file'):
968
- check_bad_eq(newargs[i])
969
- shell_path = newargs[i+1]
970
- newargs[i] = ''
971
- newargs[i+1] = ''
972
- elif newargs[i].startswith('--js-library'):
973
- check_bad_eq(newargs[i])
974
- js_libraries.append(newargs[i+1])
975
- newargs[i] = ''
976
- newargs[i+1] = ''
977
- elif newargs[i] == '--remove-duplicates':
978
- logging.warning ('--remove-duplicates is deprecated as it is no longer needed. If you cannot link without it, file a bug with a testcase')
979
- newargs[i] = ''
980
- elif newargs[i] == '--jcache':
981
- jcache = True
982
- newargs[i] = ''
983
- elif newargs[i] == '--clear-cache':
984
- newargs[i] = ''
985
- logging.warning('clearing cache')
986
- shared.Cache.erase()
987
- sys.exit(0)
988
- elif newargs[i] == '--save-bc':
989
- check_bad_eq(newargs[i])
990
- save_bc = newargs[i+1]
991
- newargs[i] = ''
992
- newargs[i+1] = ''
993
- elif newargs[i] == '--memory-init-file':
994
- check_bad_eq(newargs[i])
995
- memory_init_file = int(newargs[i+1])
996
- newargs[i] = ''
997
- newargs[i+1] = ''
998
- elif newargs[i] == '--proxy-to-worker':
999
- proxy_to_worker = True
1000
- newargs[i] = ''
1001
- elif newargs[i].startswith(('-I', '-L')):
1002
- path_name = newargs[i][2:]
1003
- if not absolute_warning_shown and os.path.isabs(path_name):
1004
- logging.warning ('-I or -L of an absolute path "' + newargs[i] + '" encountered. If this is to a local system header/library, it may cause problems (local system files make sense for compiling natively on your system, but not necessarily to JavaScript). Pass \'-Wno-warn-absolute-paths\' to emcc to hide this warning.') # Of course an absolute path to a non-system-specific library or header is fine, and you can ignore this warning. The danger are system headers that are e.g. x86 specific and nonportable. The emscripten bundled headers are modified to be portable, local system ones are generally not
1005
- absolute_warning_shown = True
1006
- elif newargs[i] == '--emrun':
1007
- emrun = True
1008
- newargs[i] = ''
1009
- elif newargs[i] == '--em-config':
1010
- # This option is parsed in tools/shared.py, here only clean it up from being passed to clang.
1011
- newargs[i] = ''
1012
- newargs[i+1] = ''
1013
- elif newargs[i] == '--default-obj-ext':
1014
- newargs[i] = ''
1015
- default_object_extension = newargs[i+1]
1016
- if not default_object_extension.startswith('.'):
1017
- default_object_extension = '.' + default_object_extension
1018
- newargs[i+1] = ''
1019
-
1020
- newargs = [ arg for arg in newargs if arg is not '' ]
1021
-
1022
- # If user did not specify a default -std for C++ code, specify the emscripten default.
1023
- if default_cxx_std:
1024
- newargs = newargs + [default_cxx_std]
1025
-
1026
- if emrun:
1027
- pre_js += open(shared.path_from_root('src', 'emrun_prejs.js')).read() + '\n'
1028
- post_js += open(shared.path_from_root('src', 'emrun_postjs.js')).read() + '\n'
1029
-
1030
- if js_opts is None: js_opts = opt_level >= 2
1031
- if llvm_opts is None: llvm_opts = LLVM_OPT_LEVEL[opt_level]
1032
- if llvm_lto is None and opt_level >= 3: llvm_lto = 3
1033
- if opt_level == 0: debug_level = 4
1034
- if closure is None and opt_level == 3: closure = True
1035
-
1036
- if llvm_lto is None and bind:
1037
- logging.debug('running lto for embind') # XXX this is a workaround for a pointer issue
1038
- llvm_lto = 1
1039
-
1040
- # TODO: support source maps with js_transform
1041
- if js_transform and debug_level >= 4:
1042
- logging.warning('disabling source maps because a js transform is being done')
1043
- debug_level = 3
1044
-
1045
- if DEBUG: start_time = time.time() # done after parsing arguments, which might affect debug state
1046
-
1047
- if closure:
1048
- assert os.path.exists(shared.CLOSURE_COMPILER), logging.error('fatal: Closure compiler (%s) does not exist' % shared.CLOSURE_COMPILER)
1049
-
1050
- for i in range(len(newargs)):
1051
- if newargs[i] == '-s':
1052
- if is_minus_s_for_emcc(newargs, i):
1053
- settings_changes.append(newargs[i+1])
1054
- newargs[i] = newargs[i+1] = ''
1055
- elif newargs[i].startswith('--typed-arrays'):
1056
- assert '=' not in newargs[i], 'Invalid typed arrays parameter (do not use "=")'
1057
- settings_changes.append('USE_TYPED_ARRAYS=' + newargs[i+1])
1058
- newargs[i] = ''
1059
- newargs[i+1] = ''
1060
- newargs = [ arg for arg in newargs if arg is not '' ]
1061
-
1062
- if split_js_file:
1063
- settings_changes.append("PRINT_SPLIT_FILE_MARKER=1")
1064
-
1065
- # Find input files
1066
-
1067
- input_files = []
1068
- has_source_inputs = False
1069
- lib_dirs = [shared.path_from_root('system', 'local', 'lib'),
1070
- shared.path_from_root('system', 'lib')]
1071
- libs = []
1072
- for i in range(len(newargs)): # find input files XXX this a simple heuristic. we should really analyze based on a full understanding of gcc params,
1073
- # right now we just assume that what is left contains no more |-x OPT| things
1074
- arg = newargs[i]
1075
-
1076
- if i > 0:
1077
- prev = newargs[i-1]
1078
- if prev in ['-MT', '-MF', '-MQ', '-D', '-U', '-o', '-x', '-Xpreprocessor', '-include', '-imacros', '-idirafter', '-iprefix', '-iwithprefix', '-iwithprefixbefore', '-isysroot', '-imultilib', '-A', '-isystem', '-iquote', '-install_name', '-compatibility_version', '-current_version', '-I', '-L']: continue # ignore this gcc-style argument
1079
-
1080
- if (os.path.islink(arg) and os.path.realpath(arg).endswith(SOURCE_ENDINGS + BITCODE_ENDINGS + DYNAMICLIB_ENDINGS + ASSEMBLY_ENDINGS)):
1081
- arg = os.path.realpath(arg)
1082
-
1083
- if not arg.startswith('-'):
1084
- if not os.path.exists(arg):
1085
- logging.error('%s: No such file or directory ("%s" was expected to be an input file, based on the commandline arguments provided)' % (arg, arg))
1086
- exit(1)
1087
-
1088
- arg_ending = filename_type_ending(arg)
1089
- if arg_ending.endswith(SOURCE_ENDINGS + BITCODE_ENDINGS + DYNAMICLIB_ENDINGS + ASSEMBLY_ENDINGS) or shared.Building.is_ar(arg): # we already removed -o <target>, so all these should be inputs
1090
- newargs[i] = ''
1091
- if arg_ending.endswith(SOURCE_ENDINGS):
1092
- input_files.append(arg)
1093
- has_source_inputs = True
1094
- elif arg_ending.endswith(ASSEMBLY_ENDINGS) or shared.Building.is_bitcode(arg): # this should be bitcode, make sure it is valid
1095
- input_files.append(arg)
1096
- elif arg_ending.endswith(STATICLIB_ENDINGS + DYNAMICLIB_ENDINGS):
1097
- # if it's not, and it's a library, just add it to libs to find later
1098
- l = unsuffixed_basename(arg)
1099
- for prefix in LIB_PREFIXES:
1100
- if not prefix: continue
1101
- if l.startswith(prefix):
1102
- l = l[len(prefix):]
1103
- break
1104
- libs.append(l)
1105
- newargs[i] = ''
1106
- else:
1107
- logging.warning(arg + ' is not valid LLVM bitcode')
1108
- elif arg_ending.endswith(STATICLIB_ENDINGS):
1109
- if not shared.Building.is_ar(arg):
1110
- if shared.Building.is_bitcode(arg):
1111
- logging.error(arg + ': File has a suffix of a static library ' + str(STATICLIB_ENDINGS) + ', but instead is an LLVM bitcode file! When linking LLVM bitcode files, use one of the suffixes ' + str(BITCODE_ENDINGS))
1112
- else:
1113
- logging.error(arg + ': Unknown format, not a static library!')
1114
- exit(1)
1115
- else:
1116
- logging.error(arg + ": Input file has an unknown suffix, don't know what to do with it!")
1117
- exit(1)
1118
- elif arg.startswith('-L'):
1119
- lib_dirs.append(arg[2:])
1120
- newargs[i] = ''
1121
- elif arg.startswith('-l'):
1122
- libs.append(arg[2:])
1123
- newargs[i] = ''
1124
-
1125
- original_input_files = input_files[:]
1126
-
1127
- newargs = [ arg for arg in newargs if arg is not '' ]
1128
-
1129
- # -c means do not link in gcc, and for us, the parallel is to not go all the way to JS, but stop at bitcode
1130
- has_dash_c = '-c' in newargs
1131
- if has_dash_c:
1132
- assert has_source_inputs, 'Must have source code inputs to use -c'
1133
- target = target_basename + '.o'
1134
- final_suffix = 'o'
1135
-
1136
- # Find library files
1137
- for lib in libs:
1138
- logging.debug('looking for library "%s"' % lib)
1139
- found = False
1140
- for prefix in LIB_PREFIXES:
1141
- for suff in STATICLIB_ENDINGS + DYNAMICLIB_ENDINGS:
1142
- name = prefix + lib + suff
1143
- for lib_dir in lib_dirs:
1144
- path = os.path.join(lib_dir, name)
1145
- if os.path.exists(path):
1146
- logging.debug('found library "%s" at %s' % (lib, path))
1147
- input_files.append(path)
1148
- found = True
1149
- break
1150
- if found: break
1151
- if found: break
1152
- if not found: logging.warning('emcc: cannot find library "%s"' % lib)
1153
-
1154
- # If not compiling to JS, then we are compiling to an intermediate bitcode objects or library, so
1155
- # ignore dynamic linking, since multiple dynamic linkings can interfere with each other
1156
- if not filename_type_suffix(target) in JS_CONTAINING_SUFFIXES or ignore_dynamic_linking:
1157
- def check(input_file):
1158
- if filename_type_ending(input_file) in DYNAMICLIB_ENDINGS:
1159
- if not ignore_dynamic_linking: logging.warning('ignoring dynamic library %s because not compiling to JS or HTML, remember to link it when compiling to JS or HTML at the end' % os.path.basename(input_file))
1160
- return False
1161
- else:
1162
- return True
1163
- input_files = filter(lambda input_file: check(input_file), input_files)
1164
-
1165
- if len(input_files) == 0:
1166
- logging.error('no input files\nnote that input files without a known suffix are ignored, make sure your input files end with one of: ' + str(SOURCE_ENDINGS + BITCODE_ENDINGS + DYNAMICLIB_ENDINGS + STATICLIB_ENDINGS + ASSEMBLY_ENDINGS))
1167
- exit(0)
1168
-
1169
- newargs = CC_ADDITIONAL_ARGS + newargs
1170
-
1171
- assert not (Compression.on and final_suffix != 'html'), 'Compression only works when generating HTML'
1172
-
1173
- # If we are using embind and generating JS, now is the time to link in bind.cpp
1174
- if bind and final_suffix in JS_CONTAINING_SUFFIXES:
1175
- input_files.append(shared.path_from_root('system', 'lib', 'embind', 'bind.cpp'))
1176
-
1177
- # Apply optimization level settings
1178
- shared.Settings.apply_opt_level(opt_level, noisy=True)
1179
-
1180
- # Apply -s settings in newargs here (after optimization levels, so they can override them)
1181
- for change in settings_changes:
1182
- key, value = change.split('=')
1183
- if value[0] == '@':
1184
- value = '"@' + os.path.abspath(value[1:]) + '"'
1185
- value = value.replace('\\\\', '/').replace('\\', '/') # Convert backslash paths to forward slashes on Windows as well, since the JS compiler otherwise needs the backslashes escaped (alternative is to escape all input paths passing to JS, which feels clumsier to read)
1186
- exec('shared.Settings.' + key + ' = ' + value)
1187
-
1188
- # Apply effects from settings
1189
- if bind and shared.Settings.ASM_JS:
1190
- logging.warning('disabling asm.js since embind is not ready for it yet')
1191
- shared.Settings.ASM_JS = 0
1192
-
1193
- fastcomp = os.environ.get('EMCC_FAST_COMPILER') == '1'
1194
-
1195
- if fastcomp:
1196
- shared.Settings.ASM_JS = 1
1197
- assert shared.Settings.ALLOW_MEMORY_GROWTH == 0, 'memory growth not supported in fastcomp yet'
1198
- assert shared.Settings.UNALIGNED_MEMORY == 0, 'forced unaligned memory not supported in fastcomp'
1199
- assert shared.Settings.SAFE_HEAP == 0, 'safe heap not supported in fastcomp yet'
1200
- assert shared.Settings.CHECK_HEAP_ALIGN == 0, 'check heap align not supported in fastcomp yet'
1201
- assert shared.Settings.SAFE_DYNCALLS == 0, 'safe dyncalls not supported in fastcomp'
1202
- assert shared.Settings.RESERVED_FUNCTION_POINTERS == 0, 'reserved function pointers not supported in fastcomp'
1203
- assert shared.Settings.ASM_HEAP_LOG == 0, 'asm heap log not supported in fastcomp'
1204
- assert shared.Settings.LABEL_DEBUG == 0, 'label debug not supported in fastcomp'
1205
- assert shared.Settings.LEGACY_GL_EMULATION == 0, 'legacy gl emulation not supported in fastcomp'
1206
- assert shared.Settings.EXECUTION_TIMEOUT == -1, 'execution timeout not supported in fastcomp'
1207
- assert shared.Settings.NAMED_GLOBALS == 0, 'named globals not supported in fastcomp'
1208
- assert shared.Settings.PGO == 0, 'pgo not supported in fastcomp'
1209
- assert shared.Settings.TARGET_LE32 == 1, 'fastcomp requires le32'
1210
- assert shared.Settings.USE_TYPED_ARRAYS == 2, 'fastcomp assumes ta2'
1211
- assert not bind, 'embind not supported in fastcomp yet'
1212
- if jcache:
1213
- logging.warning('jcache is not supported in fastcomp (you should not need it anyhow), disabling')
1214
- jcache = False
1215
-
1216
- fastcomp_opts = ['-pnacl-abi-simplify-preopt', '-pnacl-abi-simplify-postopt']
1217
- if not shared.Settings.DISABLE_EXCEPTION_CATCHING:
1218
- fastcomp_opts += ['-enable-emscripten-cxx-exceptions']
1219
-
1220
- if shared.Settings.ASM_JS:
1221
- assert opt_level >= 1 or fastcomp, 'asm.js requires -O1 or above'
1222
-
1223
- if bind:
1224
- shared.Settings.RESERVED_FUNCTION_POINTERS = max(shared.Settings.RESERVED_FUNCTION_POINTERS, 10)
1225
- if shared.Settings.CORRECT_SIGNS != 1:
1226
- logging.warning('setting CORRECT_SIGNS to 1 for asm.js code generation')
1227
- shared.Settings.CORRECT_SIGNS = 1
1228
- if shared.Settings.CORRECT_OVERFLOWS != 1:
1229
- logging.warning('setting CORRECT_OVERFLOWS to 1 for asm.js code generation')
1230
- shared.Settings.CORRECT_OVERFLOWS = 1
1231
- assert not shared.Settings.PGO, 'cannot run PGO in ASM_JS mode'
1232
-
1233
- if shared.Settings.CORRECT_SIGNS >= 2 or shared.Settings.CORRECT_OVERFLOWS >= 2 or shared.Settings.CORRECT_ROUNDINGS >= 2:
1234
- debug_level = 4 # must keep debug info to do line-by-line operations
1235
-
1236
- if debug_level > 1 and closure:
1237
- logging.warning('disabling closure because debug info was requested')
1238
- closure = False
1239
-
1240
- assert shared.LLVM_TARGET in shared.COMPILER_OPTS
1241
- if shared.LLVM_TARGET == 'i386-pc-linux-gnu':
1242
- shared.Settings.TARGET_X86 = 1
1243
- shared.Settings.TARGET_LE32 = 0
1244
- assert 'le32-unknown-nacl' not in shared.COMPILER_OPTS
1245
- elif shared.LLVM_TARGET == 'le32-unknown-nacl':
1246
- shared.Settings.TARGET_LE32 = 1
1247
- shared.Settings.TARGET_X86 = 0
1248
- assert 'i386-pc-linux-gnu' not in shared.COMPILER_OPTS
1249
- else:
1250
- raise Exception('unknown llvm target: ' + str(shared.LLVM_TARGET))
1251
-
1252
- if shared.Settings.USE_TYPED_ARRAYS != 2 and llvm_opts > 0:
1253
- logging.warning('disabling LLVM optimizations, need typed arrays mode 2 for them')
1254
- llvm_opts = 0
1255
-
1256
- if shared.Settings.MAIN_MODULE:
1257
- assert not shared.Settings.SIDE_MODULE
1258
- shared.Settings.INCLUDE_FULL_LIBRARY = 1
1259
- elif shared.Settings.SIDE_MODULE:
1260
- assert not shared.Settings.MAIN_MODULE
1261
-
1262
- if shared.Settings.MAIN_MODULE or shared.Settings.SIDE_MODULE:
1263
- assert not memory_init_file, 'memory init file is not supported with module linking'
1264
- assert shared.Settings.ASM_JS, 'module linking requires asm.js output (-s ASM_JS=1)'
1265
- shared.Settings.LINKABLE = 1 # TODO: add FORCE_DCE option for the brave people that do want to dce here and in side modules
1266
- debug_level = max(debug_level, 2)
1267
-
1268
- if shared.Settings.ASSERTIONS and shared.Settings.ALIASING_FUNCTION_POINTERS:
1269
- logging.warning('ALIASING_FUNCTION_POINTERS is on, function pointer comparisons may be invalid across types')
1270
-
1271
- if shared.Settings.STB_IMAGE and final_suffix in JS_CONTAINING_SUFFIXES:
1272
- input_files.append(shared.path_from_root('third_party', 'stb_image.c'))
1273
- shared.Settings.EXPORTED_FUNCTIONS += ['_stbi_load', '_stbi_load_from_memory', '_stbi_image_free']
1274
-
1275
- if type(shared.Settings.EXPORTED_FUNCTIONS) in (list, tuple):
1276
- # always need malloc and free to be kept alive and exported, for internal use and other modules
1277
- for required_export in ['_malloc', '_free']:
1278
- if required_export not in shared.Settings.EXPORTED_FUNCTIONS:
1279
- shared.Settings.EXPORTED_FUNCTIONS.append(required_export)
1280
- else:
1281
- logging.debug('using response file for EXPORTED_FUNCTIONS, make sure it includes _malloc and _free')
1282
-
1283
- if shared.Settings.ASM_JS and shared.Settings.DLOPEN_SUPPORT:
1284
- assert shared.Settings.DISABLE_EXCEPTION_CATCHING, 'no exceptions support with dlopen in asm yet'
1285
-
1286
- if proxy_to_worker:
1287
- shared.Settings.PROXY_TO_WORKER = 1
1288
-
1289
- if js_opts:
1290
- shared.Settings.RUNNING_JS_OPTS = 1
1291
-
1292
- ## Compile source code to bitcode
1293
-
1294
- logging.debug('compiling to bitcode')
1295
-
1296
- temp_files = []
1297
-
1298
- # First, generate LLVM bitcode. For each input file, we get base.o with bitcode
1299
- for input_file in input_files:
1300
- file_ending = filename_type_ending(input_file)
1301
- if file_ending.endswith(SOURCE_ENDINGS):
1302
- logging.debug('compiling source file: ' + input_file)
1303
- input_file = shared.Building.preprocess(input_file, in_temp(uniquename(input_file)))
1304
- output_file = in_temp(unsuffixed(uniquename(input_file)) + '.o')
1305
- temp_files.append(output_file)
1306
- args = newargs + ['-emit-llvm', '-c', input_file, '-o', output_file]
1307
- if file_ending.endswith(CXX_ENDINGS):
1308
- args += shared.EMSDK_CXX_OPTS
1309
- logging.debug("running: " + call + ' ' + ' '.join(args))
1310
- execute([call] + args) # let compiler frontend print directly, so colors are saved (PIPE kills that)
1311
- if not os.path.exists(output_file):
1312
- logging.error('compiler frontend failed to generate LLVM bitcode, halting')
1313
- sys.exit(1)
1314
- else: # bitcode
1315
- if file_ending.endswith(BITCODE_ENDINGS):
1316
- logging.debug('copying bitcode file: ' + input_file)
1317
- temp_file = in_temp(unsuffixed(uniquename(input_file)) + '.o')
1318
- shutil.copyfile(input_file, temp_file)
1319
- temp_files.append(temp_file)
1320
- elif file_ending.endswith(DYNAMICLIB_ENDINGS) or shared.Building.is_ar(input_file):
1321
- logging.debug('copying library file: ' + input_file)
1322
- temp_file = in_temp(uniquename(input_file))
1323
- shutil.copyfile(input_file, temp_file)
1324
- temp_files.append(temp_file)
1325
- elif file_ending.endswith(ASSEMBLY_ENDINGS):
1326
- if not LEAVE_INPUTS_RAW:
1327
- # Note that by assembling the .ll file, then disassembling it later, we will
1328
- # remove annotations which is a good thing for compilation time
1329
- logging.debug('assembling assembly file: ' + input_file)
1330
- temp_file = in_temp(unsuffixed(uniquename(input_file)) + '.o')
1331
- shared.Building.llvm_as(input_file, temp_file)
1332
- temp_files.append(temp_file)
1333
- else:
1334
- logging.error(input_file + ': Unknown file suffix when compiling to LLVM bitcode!')
1335
- sys.exit(1)
1336
-
1337
- if not LEAVE_INPUTS_RAW:
1338
- assert len(temp_files) == len(input_files)
1339
-
1340
- # Optimize source files
1341
- if llvm_opts > 0:
1342
- for i, input_file in enumerate(input_files):
1343
- file_ending = filename_type_ending(input_file)
1344
- if file_ending.endswith(SOURCE_ENDINGS):
1345
- temp_file = temp_files[i]
1346
- logging.debug('optimizing %s with -O%s' % (input_file, llvm_opts))
1347
- shared.Building.llvm_opt(temp_file, llvm_opts)
1348
-
1349
- # If we were just asked to generate bitcode, stop there
1350
- if final_suffix not in JS_CONTAINING_SUFFIXES:
1351
- if not specified_target:
1352
- for input_file in input_files:
1353
- shutil.move(in_temp(unsuffixed(uniquename(input_file)) + '.o'), unsuffixed_basename(input_file) + '.' + final_suffix)
1354
- else:
1355
- if len(input_files) == 1:
1356
- temp_output_base = in_temp(unsuffixed(uniquename(input_files[0])))
1357
- if specified_target.endswith('/') or specified_target.endswith('\\') or os.path.isdir(specified_target): # User passed '-o <directory' as the location to output to.
1358
- obj_output_name = os.path.join(specified_target, os.path.splitext(os.path.basename(input_file))[0] + default_object_extension)
1359
- logging.debug('User specified -o <directoryname> as the location of the output. Generating output file ' + obj_output_name)
1360
- try:
1361
- shutil.move(temp_output_base + '.o', obj_output_name)
1362
- except IOError, e:
1363
- logging.error('Could not write to output file ' + obj_output_name + '. Perhaps the output directory does not exist?')
1364
- exit(1)
1365
- else: # User passed '-o <filename>' as the location to output to.
1366
- shutil.move(temp_output_base + '.o', specified_target)
1367
- if os.path.exists(temp_output_base + '.d'):
1368
- # There was a .d file generated, from -MD or -MMD and friends, save a copy of it to where the output resides,
1369
- # adjusting the target name away from the temporary file name to the specified target.
1370
- # It will be deleted with the rest of the temporary directory.
1371
- deps = open(temp_output_base + '.d').read()
1372
- deps = deps.replace(temp_output_base + '.o', specified_target)
1373
- with open(os.path.join(os.path.dirname(specified_target), os.path.basename(unsuffixed(input_files[0]) + '.d')), "w") as out_dep:
1374
- out_dep.write(deps)
1375
- else:
1376
- assert len(original_input_files) == 1 or not has_dash_c, 'fatal error: cannot specify -o with -c with multiple files' + str(sys.argv) + ':' + str(original_input_files)
1377
- # We have a specified target (-o <target>), which is not JavaScript or HTML, and
1378
- # we have multiple files: Link them
1379
- logging.debug('link: ' + str(temp_files) + specified_target)
1380
- shared.Building.link(temp_files, specified_target)
1381
- exit(0)
1382
-
1383
- ## Continue on to create JavaScript
1384
-
1385
- logging.debug('will generate JavaScript')
1386
-
1387
- extra_files_to_link = []
1388
-
1389
- if not LEAVE_INPUTS_RAW and \
1390
- not shared.Settings.BUILD_AS_SHARED_LIB == 2 and \
1391
- not shared.Settings.SIDE_MODULE: # shared libraries/side modules link no C libraries, need them in parent
1392
-
1393
- # Check if we need to include some libraries that we compile. (We implement libc ourselves in js, but
1394
- # compile a malloc implementation and stdlibc++.)
1395
-
1396
- def read_symbols(path, exclude=None):
1397
- symbols = map(lambda line: line.strip().split(' ')[1], open(path).readlines())
1398
- if exclude:
1399
- symbols = filter(lambda symbol: symbol not in exclude, symbols)
1400
- return set(symbols)
1401
-
1402
- lib_opts = ['-O2']
1403
-
1404
- # XXX We also need to add libc symbols that use malloc, for example strdup. It's very rare to use just them and not
1405
- # a normal malloc symbol (like free, after calling strdup), so we haven't hit this yet, but it is possible.
1406
- libc_symbols = read_symbols(shared.path_from_root('system', 'lib', 'libc.symbols'))
1407
- sdl_symbols = read_symbols(shared.path_from_root('system', 'lib', 'sdl.symbols'))
1408
- libcextra_symbols = read_symbols(shared.path_from_root('system', 'lib', 'libcextra.symbols'))
1409
- libcxx_symbols = read_symbols(shared.path_from_root('system', 'lib', 'libcxx', 'symbols'), exclude=libc_symbols)
1410
- libcxxabi_symbols = read_symbols(shared.path_from_root('system', 'lib', 'libcxxabi', 'symbols'), exclude=libc_symbols)
1411
-
1412
- # XXX we should disable EMCC_DEBUG when building libs, just like in the relooper
1413
-
1414
- def build_libc(lib_filename, files):
1415
- o_s = []
1416
- prev_cxx = os.environ.get('EMMAKEN_CXX')
1417
- if prev_cxx: os.environ['EMMAKEN_CXX'] = ''
1418
- musl_internal_includes = shared.path_from_root('system', 'lib', 'libc', 'musl', 'src', 'internal')
1419
- for src in files:
1420
- o = in_temp(os.path.basename(src) + '.o')
1421
- execute([shared.PYTHON, shared.EMCC, shared.path_from_root('system', 'lib', src), '-o', o, '-I', musl_internal_includes] + lib_opts, stdout=stdout, stderr=stderr)
1422
- o_s.append(o)
1423
- if prev_cxx: os.environ['EMMAKEN_CXX'] = prev_cxx
1424
- shared.Building.link(o_s, in_temp(lib_filename))
1425
- return in_temp(lib_filename)
1426
-
1427
- def build_libcxx(src_dirname, lib_filename, files):
1428
- o_s = []
1429
- for src in files:
1430
- o = in_temp(src + '.o')
1431
- srcfile = shared.path_from_root(src_dirname, src)
1432
- execute([shared.PYTHON, shared.EMXX, srcfile, '-o', o, '-std=c++11'] + lib_opts, stdout=stdout, stderr=stderr)
1433
- o_s.append(o)
1434
- shared.Building.link(o_s, in_temp(lib_filename))
1435
- return in_temp(lib_filename)
1436
-
1437
- # libc
1438
- def create_libc():
1439
- logging.debug(' building libc for cache')
1440
- libc_files = [
1441
- 'dlmalloc.c',
1442
- os.path.join('libcxx', 'new.cpp'),
1443
- os.path.join('libc', 'stdlib', 'getopt_long.c'),
1444
- os.path.join('libc', 'gen', 'err.c'),
1445
- os.path.join('libc', 'gen', 'errx.c'),
1446
- os.path.join('libc', 'gen', 'warn.c'),
1447
- os.path.join('libc', 'gen', 'warnx.c'),
1448
- os.path.join('libc', 'gen', 'verr.c'),
1449
- os.path.join('libc', 'gen', 'verrx.c'),
1450
- os.path.join('libc', 'gen', 'vwarn.c'),
1451
- os.path.join('libc', 'gen', 'vwarnx.c'),
1452
- os.path.join('libc', 'stdlib', 'strtod.c'),
1453
- ]
1454
- musl_files = [
1455
- ]
1456
- for directory, sources in musl_files:
1457
- libc_files += [os.path.join('libc', 'musl', 'src', directory, source) for source in sources]
1458
- return build_libc('libc.bc', libc_files)
1459
-
1460
- def apply_libc(need):
1461
- # libc needs some sign correction. # If we are in mode 0, switch to 2. We will add our lines
1462
- try:
1463
- if shared.Settings.CORRECT_SIGNS == 0: raise Exception('we need to change to 2')
1464
- except: # we fail if equal to 0 - so we need to switch to 2 - or if CORRECT_SIGNS is not even in Settings
1465
- shared.Settings.CORRECT_SIGNS = 2
1466
- if shared.Settings.CORRECT_SIGNS == 2:
1467
- shared.Settings.CORRECT_SIGNS_LINES = [shared.path_from_root('src', 'dlmalloc.c') + ':' + str(i+4) for i in [4816, 4191, 4246, 4199, 4205, 4235, 4227]]
1468
- # If we are in mode 1, we are correcting everything anyhow. If we are in mode 3, we will be corrected
1469
- # so all is well anyhow too.
1470
- return True
1471
-
1472
- # libcextra
1473
- def create_libcextra():
1474
- logging.debug('building libcextra for cache')
1475
- musl_files = [
1476
- ['ctype', [
1477
- 'iswalnum.c',
1478
- 'iswalpha.c',
1479
- 'iswblank.c',
1480
- 'iswcntrl.c',
1481
- 'iswctype.c',
1482
- 'iswdigit.c',
1483
- 'iswgraph.c',
1484
- 'iswlower.c',
1485
- 'iswprint.c',
1486
- 'iswpunct.c',
1487
- 'iswspace.c',
1488
- 'iswupper.c',
1489
- 'iswxdigit.c',
1490
- 'towctrans.c',
1491
- 'wcswidth.c',
1492
- 'wctrans.c',
1493
- 'wcwidth.c',
1494
- ]],
1495
- ['locale', [
1496
- 'iconv.c',
1497
- 'iswalnum_l.c',
1498
- 'iswalpha_l.c',
1499
- 'iswblank_l.c',
1500
- 'iswcntrl_l.c',
1501
- 'iswctype_l.c',
1502
- 'iswdigit_l.c',
1503
- 'iswgraph_l.c',
1504
- 'iswlower_l.c',
1505
- 'iswprint_l.c',
1506
- 'iswpunct_l.c',
1507
- 'iswspace_l.c',
1508
- 'iswupper_l.c',
1509
- 'iswxdigit_l.c',
1510
- 'strfmon.c',
1511
- 'strxfrm.c',
1512
- 'towctrans_l.c',
1513
- 'towlower_l.c',
1514
- 'towupper_l.c',
1515
- 'wcscoll.c',
1516
- 'wcscoll_l.c',
1517
- 'wcsxfrm.c',
1518
- 'wcsxfrm_l.c',
1519
- 'wctrans_l.c',
1520
- 'wctype_l.c',
1521
- ]],
1522
- ['multibyte', [
1523
- 'btowc.c',
1524
- 'mblen.c',
1525
- 'mbrlen.c',
1526
- 'mbrtowc.c',
1527
- 'mbsinit.c',
1528
- 'mbsnrtowcs.c',
1529
- 'mbsrtowcs.c',
1530
- 'mbstowcs.c',
1531
- 'mbtowc.c',
1532
- 'wcrtomb.c',
1533
- 'wcsnrtombs.c',
1534
- 'wcsrtombs.c',
1535
- 'wcstombs.c',
1536
- 'wctob.c',
1537
- 'wctomb.c',
1538
- ]],
1539
- ['regex', [
1540
- 'regcomp.c',
1541
- 'regerror.c',
1542
- 'regexec.c',
1543
- 'tre-mem.c',
1544
- ]],
1545
- ['stdio', [
1546
- 'fwprintf.c',
1547
- 'swprintf.c',
1548
- 'vfwprintf.c',
1549
- 'vswprintf.c',
1550
- 'vwprintf.c',
1551
- 'wprintf.c',
1552
- ]],
1553
- ['stdlib', [
1554
- 'ecvt.c',
1555
- 'fcvt.c',
1556
- 'gcvt.c',
1557
- ]],
1558
- ['string', [
1559
- 'wcpcpy.c',
1560
- 'wcpncpy.c',
1561
- 'wcscasecmp.c',
1562
- 'wcscasecmp_l.c',
1563
- 'wcscat.c',
1564
- 'wcschr.c',
1565
- 'wcscmp.c',
1566
- 'wcscpy.c',
1567
- 'wcscspn.c',
1568
- 'wcsdup.c',
1569
- 'wcslen.c',
1570
- 'wcsncasecmp.c',
1571
- 'wcsncasecmp_l.c',
1572
- 'wcsncat.c',
1573
- 'wcsncmp.c',
1574
- 'wcsncpy.c',
1575
- 'wcsnlen.c',
1576
- 'wcspbrk.c',
1577
- 'wcsrchr.c',
1578
- 'wcsspn.c',
1579
- 'wcsstr.c',
1580
- 'wcstok.c',
1581
- 'wcswcs.c',
1582
- 'wmemchr.c',
1583
- 'wmemcmp.c',
1584
- 'wmemcpy.c',
1585
- 'wmemmove.c',
1586
- 'wmemset.c',
1587
- ]]
1588
- ]
1589
- libcextra_files = []
1590
- for directory, sources in musl_files:
1591
- libcextra_files += [os.path.join('libc', 'musl', 'src', directory, source) for source in sources]
1592
- return build_libc('libcextra.bc', libcextra_files)
1593
-
1594
- # libcxx
1595
- def create_libcxx():
1596
- logging.debug('building libcxx for cache')
1597
- libcxx_files = [
1598
- 'algorithm.cpp',
1599
- 'condition_variable.cpp',
1600
- 'future.cpp',
1601
- 'iostream.cpp',
1602
- 'memory.cpp',
1603
- 'random.cpp',
1604
- 'stdexcept.cpp',
1605
- 'system_error.cpp',
1606
- 'utility.cpp',
1607
- 'bind.cpp',
1608
- 'debug.cpp',
1609
- 'hash.cpp',
1610
- 'mutex.cpp',
1611
- 'string.cpp',
1612
- 'thread.cpp',
1613
- 'valarray.cpp',
1614
- 'chrono.cpp',
1615
- 'exception.cpp',
1616
- 'ios.cpp',
1617
- 'locale.cpp',
1618
- 'regex.cpp',
1619
- 'strstream.cpp'
1620
- ]
1621
- return build_libcxx(os.path.join('system', 'lib', 'libcxx'), 'libcxx.bc', libcxx_files)
1622
-
1623
- def apply_libcxx(need):
1624
- assert shared.Settings.QUANTUM_SIZE == 4, 'We do not support libc++ with QUANTUM_SIZE == 1'
1625
- # libcxx might need corrections, so turn them all on. TODO: check which are actually needed
1626
- shared.Settings.CORRECT_SIGNS = shared.Settings.CORRECT_OVERFLOWS = shared.Settings.CORRECT_ROUNDINGS = 1
1627
- #logging.info('using libcxx turns on CORRECT_* options')
1628
- return True
1629
-
1630
- # libcxxabi - just for dynamic_cast for now
1631
- def create_libcxxabi():
1632
- logging.debug('building libcxxabi for cache')
1633
- libcxxabi_files = [
1634
- 'typeinfo.cpp',
1635
- 'private_typeinfo.cpp'
1636
- ]
1637
- return build_libcxx(os.path.join('system', 'lib', 'libcxxabi', 'src'), 'libcxxabi.bc', libcxxabi_files)
1638
-
1639
- def apply_libcxxabi(need):
1640
- assert shared.Settings.QUANTUM_SIZE == 4, 'We do not support libc++abi with QUANTUM_SIZE == 1'
1641
- #logging.info('using libcxxabi, this may need CORRECT_* options')
1642
- #shared.Settings.CORRECT_SIGNS = shared.Settings.CORRECT_OVERFLOWS = shared.Settings.CORRECT_ROUNDINGS = 1
1643
- return True
1644
-
1645
- # SDL. We include code that demands malloc/free if not already required, so we have proper malloc/free from JS SDL code.
1646
- # Note that the Force instance here can be optimized out, but we still export malloc/free, so they will be kept alive.
1647
- def create_sdl():
1648
- return build_libcxx(os.path.join('system', 'lib'), 'sdl.bc', ['sdl.cpp'])
1649
-
1650
- def apply_sdl(need):
1651
- return 'SDL_Init' in all_needed and ('malloc' not in all_needed or 'free' not in all_needed)
1652
-
1653
- # Settings this in the environment will avoid checking dependencies and make building big projects a little faster
1654
- # 1 means include everything; otherwise it can be the name of a lib (libcxx, etc.)
1655
- force = os.environ.get('EMCC_FORCE_STDLIBS')
1656
- force_all = force == '1'
1657
-
1658
- # Scan symbols
1659
- all_needed = set()
1660
- symbolses = map(lambda temp_file: shared.Building.llvm_nm(temp_file), temp_files)
1661
- for symbols in symbolses:
1662
- all_needed.update(symbols.undefs)
1663
- for symbols in symbolses:
1664
- all_needed.difference_update(symbols.defs)
1665
-
1666
- # Go over libraries to figure out which we must include
1667
- # If we have libcxx, we must force inclusion of libc, since libcxx uses new internally. Note: this is kind of hacky.
1668
- has = need = None
1669
- for name, create, apply_, library_symbols in [('libcxx', create_libcxx, apply_libcxx, libcxx_symbols),
1670
- ('libcextra', create_libcextra, lambda x: True, libcextra_symbols),
1671
- ('libcxxabi', create_libcxxabi, apply_libcxxabi, libcxxabi_symbols),
1672
- ('sdl', create_sdl, apply_sdl, sdl_symbols),
1673
- ('libc', create_libc, apply_libc, libc_symbols)]:
1674
- force_this = force_all or force == name
1675
- if not force_this:
1676
- need = set()
1677
- has = set()
1678
- for symbols in symbolses:
1679
- for library_symbol in library_symbols:
1680
- if library_symbol in symbols.undefs:
1681
- need.add(library_symbol)
1682
- if library_symbol in symbols.defs:
1683
- has.add(library_symbol)
1684
- for haz in has: # remove symbols that are supplied by another of the inputs
1685
- if haz in need:
1686
- need.remove(haz)
1687
- if shared.Settings.VERBOSE: logging.debug('considering %s: we need %s and have %s' % (name, str(need), str(has)))
1688
- if force_this or len(need) > 0:
1689
- force_all = True
1690
- if apply_(need):
1691
- # We need to build and link the library in
1692
- logging.debug('including %s' % name)
1693
- libfile = shared.Cache.get(name, create)
1694
- extra_files_to_link.append(libfile)
1695
-
1696
- # First, combine the bitcode files if there are several. We must also link if we have a singleton .a
1697
- if len(input_files) + len(extra_files_to_link) > 1 or \
1698
- (not LEAVE_INPUTS_RAW and not (suffix(temp_files[0]) in BITCODE_ENDINGS or suffix(temp_files[0]) in DYNAMICLIB_ENDINGS) and shared.Building.is_ar(temp_files[0])):
1699
- linker_inputs = temp_files + extra_files_to_link
1700
- logging.debug('linking: ' + str(linker_inputs))
1701
- t0 = time.time()
1702
- shared.Building.link(linker_inputs, in_temp(target_basename + '.bc'), force_archive_contents = len(filter(lambda temp: not temp.endswith(STATICLIB_ENDINGS), temp_files)) == 0)
1703
- t1 = time.time()
1704
- logging.debug(' linking took %.2f seconds' % (t1 - t0))
1705
- final = in_temp(target_basename + '.bc')
1706
- else:
1707
- if not LEAVE_INPUTS_RAW:
1708
- shutil.move(temp_files[0], in_temp(target_basename + '.bc'))
1709
- final = in_temp(target_basename + '.bc')
1710
- else:
1711
- final = in_temp(input_files[0])
1712
- shutil.copyfile(input_files[0], final)
1713
-
1714
- if DEBUG:
1715
- logging.debug('saving intermediate processing steps to %s' % shared.EMSCRIPTEN_TEMP_DIR)
1716
-
1717
- intermediate_counter = 0
1718
- intermediate_time = None
1719
- def save_intermediate(name=None, suffix='js'):
1720
- global intermediate_counter, intermediate_time
1721
- shutil.copyfile(final, os.path.join(shared.EMSCRIPTEN_TEMP_DIR, 'emcc-%d%s.%s' % (intermediate_counter, '' if name is None else '-' + name, suffix)))
1722
- intermediate_counter += 1
1723
- now = time.time()
1724
- if intermediate_time:
1725
- logging.debug(' step took %.2f seconds' % (now - intermediate_time))
1726
- intermediate_time = now
1727
-
1728
- if not LEAVE_INPUTS_RAW: save_intermediate('basebc', 'bc')
1729
-
1730
- # Optimize, if asked to
1731
- if not LEAVE_INPUTS_RAW:
1732
- link_opts = [] if debug_level >= 4 else ['-strip-debug'] # remove LLVM debug if we are not asked for it
1733
-
1734
- if llvm_lto >= 2:
1735
- logging.debug('running LLVM opt -O3 as pre-LTO')
1736
- shared.Building.llvm_opt(in_temp(target_basename + '.bc'), ['-O3'])
1737
- if DEBUG: save_intermediate('opt', 'bc')
1738
-
1739
- # If we can LTO, do it before dce, since it opens up dce opportunities
1740
- if shared.Building.can_build_standalone() and llvm_lto and llvm_lto != 2 and shared.Building.can_use_unsafe_opts():
1741
- if not shared.Building.can_inline(): link_opts.append('-disable-inlining')
1742
- # do not internalize in std-link-opts - it ignores internalize-public-api-list - and add a manual internalize
1743
- link_opts += ['-disable-internalize'] + shared.Building.get_safe_internalize() + ['-std-link-opts']
1744
- else:
1745
- # At minimum remove dead functions etc., this potentially saves a lot in the size of the generated code (and the time to compile it)
1746
- link_opts += shared.Building.get_safe_internalize() + ['-globaldce']
1747
-
1748
- if (not save_bc and not fastcomp) or AUTODEBUG:
1749
- # let llvm opt directly emit ll, to skip writing and reading all the bitcode
1750
- link_opts += ['-S']
1751
- shared.Building.llvm_opt(final, link_opts, final + '.link.ll')
1752
- final = final + '.link.ll'
1753
- if DEBUG: save_intermediate('linktime', 'll')
1754
- else:
1755
- if fastcomp and not save_bc:
1756
- # Simplify LLVM bitcode for fastcomp
1757
- link_opts += fastcomp_opts
1758
- shared.Building.llvm_opt(final, link_opts)
1759
- if DEBUG: save_intermediate('linktime', 'bc')
1760
- if save_bc:
1761
- shutil.copyfile(final, save_bc)
1762
- if fastcomp:
1763
- shared.Building.llvm_opt(final, fastcomp_opts, final + '.adsimp.bc')
1764
- final += '.adsimp.bc'
1765
- if DEBUG: save_intermediate('adsimp', 'bc')
1766
-
1767
- # Prepare .ll for Emscripten
1768
- if not LEAVE_INPUTS_RAW:
1769
- if save_bc:
1770
- final = shared.Building.llvm_dis(final, final + '.ll')
1771
- else:
1772
- assert len(input_files) == 1
1773
- if DEBUG and save_bc: save_intermediate('ll', 'll')
1774
-
1775
- if AUTODEBUG:
1776
- logging.debug('autodebug')
1777
- execute([shared.PYTHON, shared.AUTODEBUGGER, final, final + '.ad.ll'])
1778
- final += '.ad.ll'
1779
- if DEBUG: save_intermediate('autodebug', 'll')
1780
-
1781
- # Simplify bitcode after autodebug
1782
- if fastcomp and (AUTODEBUG or LEAVE_INPUTS_RAW):
1783
- shared.Building.llvm_opt(final, fastcomp_opts, final + '.adsimp.bc')
1784
- final += '.adsimp.bc'
1785
- if DEBUG: save_intermediate('adsimp', 'bc')
1786
-
1787
- # Emscripten
1788
- logging.debug('LLVM => JS')
1789
- extra_args = [] if not js_libraries else ['--libraries', ','.join(map(os.path.abspath, js_libraries))]
1790
- if jcache: extra_args.append('--jcache')
1791
- final = shared.Building.emscripten(final, append_ext=False, extra_args=extra_args)
1792
- if DEBUG: save_intermediate('original')
1793
-
1794
- # Embed and preload files
1795
- if len(preload_files) + len(embed_files) > 0:
1796
- logging.debug('setting up files')
1797
- file_args = []
1798
- if len(preload_files) > 0:
1799
- file_args.append('--preload')
1800
- file_args += preload_files
1801
- if len(embed_files) > 0:
1802
- file_args.append('--embed')
1803
- file_args += embed_files
1804
- if len(exclude_files) > 0:
1805
- file_args.append('--exclude')
1806
- file_args += exclude_files
1807
- if Compression.on:
1808
- file_args += ['--compress', Compression.encoder, Compression.decoder, Compression.js_name]
1809
- if use_preload_cache:
1810
- file_args.append('--use-preload-cache')
1811
- if no_heap_copy:
1812
- file_args.append('--no-heap-copy')
1813
- file_code = execute([shared.PYTHON, shared.FILE_PACKAGER, unsuffixed(target) + '.data'] + file_args, stdout=PIPE)[0]
1814
- pre_js = file_code + pre_js
1815
-
1816
- # Apply pre and postjs files
1817
- if pre_js or post_js:
1818
- logging.debug('applying pre/postjses')
1819
- src = open(final).read()
1820
- final += '.pp.js'
1821
- open(final, 'w').write(pre_js + src + post_js)
1822
- if DEBUG: save_intermediate('pre-post')
1823
-
1824
- # Add bindings glue if used
1825
- if bind:
1826
- logging.debug('adding embind glue')
1827
- src = open(final).read().replace('// {{PRE_RUN_ADDITIONS}}', '// {{PRE_RUN_ADDITIONS}}\n' +
1828
- open(shared.path_from_root('src', 'embind', 'embind.js')).read() +
1829
- open(shared.path_from_root('src', 'embind', 'emval.js')).read()
1830
- )
1831
- final += '.bd.js'
1832
- open(final, 'w').write(src)
1833
- if DEBUG: save_intermediate('bind')
1834
-
1835
- # Apply a source code transformation, if requested
1836
- if js_transform:
1837
- shutil.copyfile(final, final + '.tr.js')
1838
- final += '.tr.js'
1839
- posix = True if not shared.WINDOWS else False
1840
- logging.debug('applying transform: %s' % js_transform)
1841
- subprocess.check_call(shlex.split(js_transform, posix=posix) + [os.path.abspath(final)])
1842
- if DEBUG: save_intermediate('transformed')
1843
-
1844
- js_transform_tempfiles = [final]
1845
-
1846
- if memory_init_file:
1847
- if shared.Settings.USE_TYPED_ARRAYS != 2:
1848
- if type(memory_init_file) == int: logging.warning('memory init file requires typed arrays mode 2')
1849
- else:
1850
- memfile = target + '.mem'
1851
- shared.try_delete(memfile)
1852
- def repl(m):
1853
- # handle chunking of the memory initializer
1854
- s = re.sub('[\[\]\n\(\)\. ]', '', m.groups(0)[0])
1855
- s = s.replace('concat', ',')
1856
- if s[-1] == ',': s = s[:-1]
1857
- open(memfile, 'wb').write(''.join(map(lambda x: chr(int(x or '0')), s.split(','))))
1858
- if DEBUG:
1859
- # Copy into temp dir as well, so can be run there too
1860
- temp_memfile = os.path.join(shared.EMSCRIPTEN_TEMP_DIR, os.path.basename(memfile))
1861
- if os.path.abspath(memfile) != os.path.abspath(memfile):
1862
- shutil.copyfile(memfile, temp_memfile)
1863
- return 'var memoryInitializer = "%s";' % os.path.basename(memfile)
1864
- src = re.sub(shared.JS.memory_initializer_pattern, repl, open(final).read(), count=1)
1865
- open(final + '.mem.js', 'w').write(src)
1866
- final += '.mem.js'
1867
- js_transform_tempfiles[-1] = final # simple text substitution preserves comment line number mappings
1868
- if DEBUG:
1869
- if os.path.exists(memfile):
1870
- save_intermediate('meminit')
1871
- logging.debug('wrote memory initialization to %s' % memfile)
1872
- else:
1873
- logging.debug('did not see memory initialization')
1874
-
1875
- # It is useful to run several js optimizer passes together, to save on unneeded unparsing/reparsing
1876
- js_optimizer_queue = []
1877
- js_optimizer_extra_info = {}
1878
- def flush_js_optimizer_queue():
1879
- global final, js_optimizer_queue, js_optimizer_extra_info
1880
- if len(js_optimizer_extra_info) == 0:
1881
- js_optimizer_extra_info = None
1882
- if len(js_optimizer_queue) > 0 and not(not shared.Settings.ASM_JS and len(js_optimizer_queue) == 1 and js_optimizer_queue[0] == 'last'):
1883
- if DEBUG != '2':
1884
- if shared.Settings.ASM_JS:
1885
- js_optimizer_queue = ['asm'] + js_optimizer_queue
1886
- logging.debug('applying js optimization passes: %s', js_optimizer_queue)
1887
- final = shared.Building.js_optimizer(final, js_optimizer_queue, jcache, debug_level >= 4, js_optimizer_extra_info)
1888
- js_transform_tempfiles.append(final)
1889
- if DEBUG: save_intermediate('js_opts')
1890
- else:
1891
- for name in js_optimizer_queue:
1892
- passes = [name]
1893
- if shared.Settings.ASM_JS:
1894
- passes = ['asm'] + passes
1895
- logging.debug('applying js optimization pass: %s', passes)
1896
- final = shared.Building.js_optimizer(final, passes, jcache, debug_level >= 4, js_optimizer_extra_info)
1897
- js_transform_tempfiles.append(final)
1898
- save_intermediate(name)
1899
- js_optimizer_queue = []
1900
- js_optimizer_extra_info = {}
1901
-
1902
- if opt_level >= 1 and js_opts:
1903
- logging.debug('running pre-closure post-opts')
1904
-
1905
- if DEBUG == '2':
1906
- # Clean up the syntax a bit
1907
- final = shared.Building.js_optimizer(final, [], jcache, debug_level >= 4)
1908
- js_transform_tempfiles.append(final)
1909
- if DEBUG: save_intermediate('pretty')
1910
-
1911
- def get_eliminate():
1912
- if shared.Settings.ALLOW_MEMORY_GROWTH:
1913
- return 'eliminateMemSafe'
1914
- else:
1915
- return 'eliminate'
1916
-
1917
- js_optimizer_queue += [get_eliminate()]
1918
-
1919
- if shared.Settings.AGGRESSIVE_VARIABLE_ELIMINATION:
1920
- js_optimizer_queue += ['aggressiveVariableElimination']
1921
-
1922
- if opt_level >= 2:
1923
- js_optimizer_queue += ['simplifyExpressions']
1924
-
1925
- if closure and not shared.Settings.ASM_JS:
1926
- flush_js_optimizer_queue()
1927
-
1928
- logging.debug('running closure')
1929
- # no need to add this to js_transform_tempfiles, because closure and
1930
- # debug_level > 0 are never simultaneously true
1931
- final = shared.Building.closure_compiler(final)
1932
- if DEBUG: save_intermediate('closure')
1933
-
1934
- if js_opts:
1935
- if shared.Settings.OUTLINING_LIMIT > 0 and shared.Settings.ASM_JS:
1936
- js_optimizer_queue += ['outline']
1937
- js_optimizer_extra_info['sizeToOutline'] = shared.Settings.OUTLINING_LIMIT
1938
-
1939
- if (not closure or shared.Settings.ASM_JS) and shared.Settings.RELOOP and debug_level < 3:
1940
- js_optimizer_queue += ['registerize']
1941
-
1942
- if opt_level > 0:
1943
- if debug_level < 2 and shared.Settings.ASM_JS: js_optimizer_queue = map(lambda p: p if p != 'registerize' else 'registerizeAndMinify', js_optimizer_queue)
1944
- if debug_level == 0: js_optimizer_queue += ['minifyWhitespace']
1945
-
1946
- if closure and shared.Settings.ASM_JS:
1947
- js_optimizer_queue += ['closure']
1948
-
1949
- if not shared.Settings.SIDE_MODULE: js_optimizer_queue += ['last'] # side modules are not finalized until after relocation
1950
-
1951
- flush_js_optimizer_queue()
1952
-
1953
- # Remove some trivial whitespace # TODO: do not run when compress has already been done on all parts of the code
1954
- src = open(final).read()
1955
- src = re.sub(r'\n+[ \n]*\n+', '\n', src)
1956
- open(final, 'w').write(src)
1957
-
1958
- def generate_source_map(map_file_base_name, offset=0):
1959
- jsrun.run_js(shared.path_from_root('tools', 'source-maps', 'sourcemapper.js'),
1960
- shared.NODE_JS, js_transform_tempfiles +
1961
- ['--sourceRoot', os.getcwd(),
1962
- '--mapFileBaseName', map_file_base_name,
1963
- '--offset', str(offset)])
1964
-
1965
- # If we were asked to also generate HTML, do that
1966
- if final_suffix == 'html':
1967
- logging.debug('generating HTML')
1968
- shell = open(shell_path).read()
1969
- assert '{{{ SCRIPT }}}' in shell, 'HTML shell must contain {{{ SCRIPT }}} , see src/shell.html for an example'
1970
- html = open(target, 'w')
1971
- js_target = unsuffixed(target) + '.js'
1972
- base_js_target = os.path.basename(js_target)
1973
- if proxy_to_worker:
1974
- html.write(shell.replace('{{{ SCRIPT }}}', '<script>' + open(shared.path_from_root('src', 'proxyClient.js')).read().replace('{{{ filename }}}', target_basename) + '</script>'))
1975
- shutil.move(final, js_target)
1976
- elif not Compression.on:
1977
- if debug_level >= 4:
1978
- generate_source_map(target)
1979
- shutil.move(final, js_target)
1980
- # TODO: use an async blob, which would allow code rewriting on the client:
1981
- # var blob = new Blob([codeString]);
1982
- # var script = document.createElement('script');
1983
- # script.src = URL.createObjectURL(blob);
1984
- # document.body.appendChild(script);
1985
- script_tag = '''<script async type="text/javascript" src="%s"></script>''' % base_js_target
1986
- html.write(shell.replace('{{{ SCRIPT }}}', script_tag))
1987
- else:
1988
- # Compress the main code
1989
- shutil.move(final, js_target)
1990
- Compression.compress(js_target)
1991
-
1992
- # Run the decompressor in a worker, and add code to
1993
- # 1. download the compressed file
1994
- # 2. decompress to a typed array
1995
- # 3. convert to a string of source code
1996
- # 4. insert a script element with that source code (more effective than eval)
1997
- decoding = '''
1998
- var decompressWorker = new Worker('decompress.js');
1999
- var decompressCallbacks = [];
2000
- var decompressions = 0;
2001
- Module["decompress"] = function(data, callback) {
2002
- var id = decompressCallbacks.length;
2003
- decompressCallbacks.push(callback);
2004
- decompressWorker.postMessage({ data: data, id: id });
2005
- if (Module['setStatus']) {
2006
- decompressions++;
2007
- Module['setStatus']('Decompressing...');
2008
- }
2009
- };
2010
- decompressWorker.onmessage = function(event) {
2011
- decompressCallbacks[event.data.id](event.data.data);
2012
- decompressCallbacks[event.data.id] = null;
2013
- if (Module['setStatus']) {
2014
- decompressions--;
2015
- if (decompressions == 0) {
2016
- Module['setStatus']('');
2017
- }
2018
- }
2019
- };
2020
- var compiledCodeXHR = new XMLHttpRequest();
2021
- compiledCodeXHR.open('GET', '%s', true);
2022
- compiledCodeXHR.responseType = 'arraybuffer';
2023
- compiledCodeXHR.onload = function() {
2024
- var arrayBuffer = compiledCodeXHR.response;
2025
- if (!arrayBuffer) throw('Loading compressed code failed.');
2026
- var byteArray = new Uint8Array(arrayBuffer);
2027
- Module.decompress(byteArray, function(decompressed) {
2028
- var source = Array.prototype.slice.apply(decompressed).map(function(x) { return String.fromCharCode(x) }).join(''); // createObjectURL instead?
2029
- var scriptTag = document.createElement('script');
2030
- scriptTag.setAttribute('type', 'text/javascript');
2031
- scriptTag.innerHTML = source;
2032
- document.body.appendChild(scriptTag);
2033
- });
2034
- };
2035
- compiledCodeXHR.send(null);
2036
- ''' % Compression.compressed_name(base_js_target)
2037
- html.write(shell.replace('{{{ SCRIPT }}}', '<script>' + decoding + '</script>'))
2038
-
2039
- # Add decompressor with web worker glue code
2040
- decompressor = open('decompress.js', 'w')
2041
- decompressor.write(open(Compression.decoder).read())
2042
- decompressor.write('''
2043
- onmessage = function(event) {
2044
- postMessage({ data: %s(event.data.data), id: event.data.id });
2045
- };
2046
- ''' % Compression.js_name)
2047
- decompressor.close()
2048
-
2049
- html.close()
2050
- else:
2051
- if split_js_file:
2052
- from tools.split import split_javascript_file
2053
- split_javascript_file(final, unsuffixed(target), split_js_file)
2054
- else:
2055
- if debug_level >= 4: generate_source_map(target)
2056
- # copy final JS to output
2057
- shutil.move(final, target)
2058
-
2059
- if DEBUG: logging.debug('total time: %.2f seconds' % (time.time() - start_time))
2060
-
2061
- finally:
2062
- if not TEMP_DIR:
2063
- try:
2064
- shutil.rmtree(temp_dir)
2065
- except:
2066
- pass
2067
- else:
2068
- logging.info('emcc saved files are in:' + temp_dir)
2069
-