Граф коммитов

765 Коммитов

Автор SHA1 Сообщение Дата
Dan Gohman 6342cd7fbc Use -mllvm -disable-llvm-optzns.
The -O options affect the clang front-end in a variety of ways, so allow
them to be passed through to clang. To disable just the optimization passes,
use -mllvm -disable-llvm-optzns.
2014-02-10 16:40:31 -08:00
Alon Zakai 4bdc1c2d1d validate as asm.js in fastcomp -O1 and above, not -O0 output which is very unoptimized 2014-02-10 10:15:05 -08:00
Alon Zakai 079f019c35 detect .C as c; fixes #2109 2014-02-09 20:26:35 -08:00
Alon Zakai ab1ea19af2 deprecate --split option and disable browser tests using it in fastcomp 2014-02-09 14:50:42 -08:00
Alon Zakai 9faadeb8a4 enable legacy gl emulation in fastcomp 2014-02-09 11:52:02 -08:00
Alon Zakai b3ab733682 system libs fixes 2014-02-08 20:31:56 -08:00
Alon Zakai 157f3151a4 move system libs calculation to its own file 2014-02-08 12:14:56 -08:00
Alon Zakai 2c1fbefac1 TODO 2014-02-07 16:45:33 -05:00
Alon Zakai 4a2e11d8d4 move deps info to file 2014-02-07 16:43:18 -05:00
Alon Zakai 94c4724ebf make sdl malloc hack nicer, and improve back deps trick 2014-02-07 13:45:15 -05:00
Alon Zakai 534faf1530 add mechanism to add a C library dependency from a JS library, in emcc 2014-02-07 13:36:50 -05:00
Alon Zakai f546a415cc do not include system libs in shared libs 2014-02-07 11:32:53 -05:00
Alon Zakai b286fb5aa3 comments on --embed-file being inefficient, and recommending --preload-file 2014-02-07 10:48:58 -05:00
Jukka Jylänki 95b77f9e4a Add strcoll as well so that library.js does not need to depend on musl libc code. 2014-02-06 17:26:38 -05:00
Jukka Jylänki a2f95d5098 Add optimized versions of musl libc string and memory comparison functions. 2014-02-06 17:07:04 -05:00
Alon Zakai 13f89e4c79 avoid blobs when not necessary for client code mods 2014-02-05 18:31:55 -05:00
Alon Zakai 0c9c8b4c52 optimize out fround calls on clients that do not support fround 2014-02-05 15:16:05 -05:00
Alon Zakai 3136112a00 proper fix for simplifying f32-int bitcasts 2014-02-03 23:38:50 -05:00
Alon Zakai a3632a129d support EXCEPTION_CATCHING_WHITELIST in fastcomp 2014-02-02 17:07:37 -08:00
Alon Zakai 53af8ab2eb comment 2014-01-31 16:21:10 -08:00
Alon Zakai 8a6bb8d78f option to allow modifying code before executing it 2014-01-31 15:59:23 -08:00
Alon Zakai 146eff4208 run js opts for safe heap 2014-01-28 16:39:55 -08:00
Alon Zakai dd8ef8c71c comment 2014-01-27 18:36:11 -08:00
Alon Zakai c1c1cb7533 fix some safeHeap errors with the new exceptions code; fixes #2068 2014-01-27 17:52:02 -08:00
Alon Zakai 25e736cbb7 improve mem init help text; fixes #2066 2014-01-27 15:56:59 -08:00
Alon Zakai a5243b4365 support precompiled headers; fixes #2045 2014-01-26 19:25:17 -08:00
Alon Zakai cc77e14246 do not registerizeHarder when outlining 2014-01-21 19:20:54 -08:00
Ryan Kelly 68d6af077f Registerize based on full liveness analysis.
This does a much-more-expensive but much-more-thorough registerization
pass based a live-variable analysis for each function.

azakai: perform this on -O3 and above
2014-01-21 17:50:46 -08:00
Alon Zakai e1f18ae55d document what -O3 will be 2014-01-21 16:07:44 -08:00
Alon Zakai 4757fe2534 deprecate -O3 in preparation for using it for heavier js opts 2014-01-21 14:37:07 -08:00
Alon Zakai 7fff4e3eaa better error message for asm.js not supporting growable heap yet 2014-01-19 12:09:18 -08:00
Alon Zakai 27a17f57f8 don't remove whitespace in emcc, not worth the time 2014-01-17 15:10:12 -08:00
Alon Zakai c0ea7656d7 clean up emcc timing logging 2014-01-17 14:31:40 -08:00
Alon Zakai 620ff9a94d optimize memory initializer if it is large 2014-01-17 10:01:04 -08:00
Alon Zakai e138af189b remove current memory initialization chunking via .concat(..) 2014-01-17 10:01:04 -08:00
Alon Zakai 5bb976ed71 add fnmatch; fixes #2002 2014-01-16 15:42:14 -08:00
Alon Zakai a310827131 enable a form of safe heap in asm, using js optimizer pass to ensure full coverage and support for fastcomp 2014-01-16 11:27:39 -08:00
Alon Zakai 7600935358 Merge pull request #2016 from rfk/rfk/minify-names-separately
Split name-minification into a separate pass from registerization.
2014-01-15 21:33:17 -08:00
Alon Zakai c5522c6456 add musl fputws, fix vswprintf, add testing for fwprintf and swprintf as well 2014-01-15 11:26:48 -08:00
Ryan Kelly ba54ecbc93 Split name-minification into a separate pass from registerization. 2014-01-16 01:02:43 +11:00
Bruce Mitchener db88b6cd9b Fill in undefined math symbols. 2014-01-15 12:01:56 +07:00
Bruce Mitchener 8f85a8ed68 Move err/warn/etc from libc to libcextra. 2014-01-14 15:05:21 +07:00
Bruce Mitchener 58713dc426 Replace getopt_long with musl version. 2014-01-14 15:05:21 +07:00
Bruce Mitchener bba4dd6fd3 Replace implementation of warn*/err*.
This eliminates a large number of warnings about incompatible function pointer
casts when compiling for asm.js.
2014-01-14 15:05:21 +07:00
Bruce Mitchener a15486ffea Fix asm2 compilation where __toread was used. 2014-01-14 15:05:20 +07:00
Alon Zakai 0e36f078d4 add fputwc, which enables wprintf 2014-01-13 17:03:24 -08:00
Bruce Mitchener e3825afd87 Move scalbn to libc to fix broken functionality. Disable test on x86. 2014-01-14 02:21:11 +07:00
Bruce Mitchener 3b62c6587c Add lots of math functions. 2014-01-14 02:21:11 +07:00
Bruce Mitchener b167b3c751 Add gamma functions. 2014-01-14 02:21:11 +07:00
Bruce Mitchener c0229303f8 Add strtod(), wcstod(), wcstol() and friends.
This implementation of strtod() replaces the old as it implements
support for parsing hex constants which is needed by various tests.
2014-01-14 02:21:11 +07:00
Bruce Mitchener 4353f5df1e Missing string.h functionality. 2014-01-13 17:59:15 +07:00
Alon Zakai bcce3b5fb4 support exceptions using fastcomp 2014-01-09 16:06:40 -08:00
Alon Zakai 0b3416a1dc Merge branch 'incoming' into llvm-3.4
Conflicts:
	tests/test_benchmark.py
	tools/shared.py
2014-01-07 15:40:53 -08:00
Alon Zakai 582e3e62db make aggressiveVariableElimination usable through a setting 2014-01-07 12:24:40 -08:00
Alon Zakai c683909099 apply EMMAKEN_CFLAGS directly to commandline, not just to clang calls, so that we can parse it in emcc and e.g. disable vectorization as necessary 2014-01-06 13:38:25 -08:00
Alon Zakai c6cba031d9 other.test_emcc fixes for fastcomp 2014-01-06 11:23:37 -08:00
Alon Zakai 0895a9801e todo about async script tags 2014-01-04 16:34:06 -08:00
Alon Zakai 6d87b56593 adjust TOTAL_MEMORY at runtime, to take into account last minute changes to Module.TOTAL_MEMORY 2014-01-02 18:53:44 -08:00
Alon Zakai 8bd21f1fff deprecate compression 2014-01-02 18:38:44 -08:00
Alon Zakai 8468d6fa55 fix --save-bc in fastcomp 2013-12-30 16:59:01 -08:00
Alon Zakai 094cbfd615 disable jcache in fastcomp, and fake emscripten_jcache_printf 2013-12-30 12:14:49 -08:00
juj d492872d61 Merge pull request #1946 from juj/default_obj_ext
--default-obj-ext
2013-12-30 02:11:35 -08:00
Jukka Jylänki 480fa4d6ea Define behavior that 'emcc -c a.c -o dir/' shall compile and generate object file 'dir/a.o'. Previous behavior when directory was specified in -o was accidental, and it generated an object file 'dir/a_0.o'. Add new command line option --default-obj-ext that allows specifying the file suffix that is used when the output object filename is generated in this manner. '.o' is a good default suffix since it parallels the existing gcc/clang/linux convention. For Windows Visual Studio+CMake+Emscripten integration, CMake has been hardcoded to assume that if Visual Studio is targeted, the compiler will always generate '.obj' files. Hence having the ability to adjust the default naming scheme with --default-obj-ext enables working around CMake inflexibility, and add support for CMake+VS+Emscripten triple. 2013-12-29 11:04:23 +02:00
Alon Zakai 2dc5962c8b better error on missing input files, fixes #1930 2013-12-25 12:21:57 -08:00
Alon Zakai 4202310613 fix LEAVE_INPUTS_RAW in fastcomp 2013-12-24 10:55:37 -08:00
Alon Zakai a0ce0dce7d properly check for libx.so.1.2.3 types when deciding what to link in statically, and improve testing for that; fixes #1886 2013-12-24 10:07:25 -08:00
Alon Zakai 48dbd4de6e differentiate suffixes from endings in filename_type_ending as well 2013-12-24 09:47:20 -08:00
Alon Zakai b1f10031a3 clearly differentiate suffixes from endings (dot + suffix) in emcc 2013-12-24 09:41:07 -08:00
Alon Zakai cb046b74b3 do not link in dynamic libraries when compiling to bitcode in intermediate stages, only link them in when building to js or html. closes #1886 2013-12-23 21:22:46 -08:00
Alon Zakai 8dd12f6e6c error on unsupported features in fastcomp 2013-12-21 11:08:25 -08:00
Alon Zakai 058910ca69 fix emcc usage of file packager 2013-12-20 20:42:20 -08:00
Alon Zakai 982d3e0bc5 Merge pull request #1922 from coolwanglu/embed_dot_files
--exclude-file
2013-12-20 17:26:15 -08:00
Alon Zakai 2d5f34d150 simplify ir for fastcomp after the autodebugger runs 2013-12-20 11:27:25 -08:00
Alon Zakai 4efa4270a2 simplify for fastcomp together with other link operations 2013-12-19 22:01:09 -08:00
Alon Zakai ed65cfdcf1 move fastcomp simplification code into emcc, and simplify it 2013-12-19 21:51:37 -08:00
Alon Zakai 0d3ef7fc93 avoid llvm-dis in fastcomp 2013-12-19 21:32:41 -08:00
Jukka Jylänki e98f5e310d Implement command line passing to work to emrun when --emrun is passed. 2013-12-19 18:10:29 +02:00
Alon Zakai 611d08896c allow -O0 in fastcomp, still in asm mode 2013-12-16 21:06:54 -08:00
Alon Zakai 49e00037f0 Merge branch 'em_config' of github.com:juj/emscripten into incoming
Conflicts:
	emcc
2013-12-16 17:50:47 -08:00
Alon Zakai 4fb00853a9 Merge pull request #1896 from juj/emrun
Emrun
2013-12-16 16:24:39 -08:00
Lu Wang 3b57236896 --exclude-file 2013-12-14 19:32:06 +08:00
Jukka Jylänki 69317b3554 Implemented --emrun linker flag to emcc, which is a helper that makes the compilation output emrun-compatible. 2013-12-14 01:19:24 +02:00
Alon Zakai 1d27ea201d allow asm heaps to be multiples of 16MB 2013-12-13 11:06:44 -08:00
Jukka Jylänki 93f2e13861 Add new emcc command line parameter --em-config that allows specifying the location of the .emscripten configuration file from the command line. This overrides and has the same meaning as the environment variable EM_CONFIG. 2013-12-13 13:47:49 +02:00
Alon Zakai da23764aa8 support C/C++ suffixes in capital form 2013-11-25 10:28:33 -08:00
Alon Zakai 9f5a01e478 Merge pull request #1831 from dinibu/dependency-fix-1820
Further changes for issue #1732
2013-11-18 14:13:02 -08:00
Dominic Wong 1b0899f7a1 Renamed outDep to out_dep. 2013-11-19 01:38:19 +08:00
Jukka Jylänki ee1537cfad Clean up Windows-specific code in previous commits in the pull request. 2013-11-18 00:36:53 +02:00
Dominic Wong 0bf4cdefdc Fixed dependency files not being saved away if using -MMD or similar. 2013-11-17 19:18:56 +08:00
Jukka Jylänki 64bad3adcf Relax emcc --compression cmdline parameter on Windows to autodetect encoder and decoder file suffix so same cmdline works on Windows and Linux. Fixes browser.test_compression on Windows. 2013-11-16 13:42:20 +02:00
Alon Zakai 149b9ea574 emit ll from llvm opt directly, to skip writing and reading all the bitcode 2013-11-14 21:58:52 -08:00
Alon Zakai 4e21fffe3f Merge branch 'regex-impl' of github.com:waywardmonkeys/emscripten into incoming
Conflicts:
	tools/shared.py
2013-11-14 21:29:31 -08:00
Alon Zakai 987ce9f2c0 set TOTAL_MEMORY to default to powers of two, for now 2013-11-13 14:31:47 -08:00
Bruce Mitchener eee1dad79e regex implementation from musl. 2013-11-02 22:46:46 +07:00
Jukka Jylänki cb3fe2bb6f Add command line parameter --no-heap-copy that optimizes for small memory footprint and fread() performance over the default behavior that copied VFS to HEAP, that is designed for mmap() performance.
Adjust MEMFS node contentMode enum to reflect whether content is off the main HEAP or not. Note that this enum is not much used, so this has little effect. Add browser tests to check that fread() and mmap() work with and without --no-heap-copy.
2013-11-02 01:46:31 +02:00
Alon Zakai 50ee300ffa write out html and side js when html output is requested, to improve page load times 2013-10-23 19:06:55 -07:00
Alon Zakai 6d125fcc3e emit emscripten version in emcc -v 2013-10-23 17:54:12 -07:00
Alon Zakai e0c3cd79db add file handling code from --preload-file etc. in a pre-js, so that it will be able to start network access as early as possible 2013-10-21 17:36:03 -07:00
Alon Zakai a78aea9e75 document the ability to pass arbitrary llvm opt args to --llvm-opts 2013-10-17 15:51:41 -07:00
Alon Zakai ff4008ad56 emcc comments on -Ox options 2013-10-14 12:14:07 -07:00
Alon Zakai 3c8c068617 Merge pull request #1681 from marcosscriven/incoming
Fix debug format to allow specific LLVM opts rather than just an integer level
2013-10-14 10:43:54 -07:00
Alon Zakai 7e5d2a672c use aliasing function pointers in -O1 2013-10-09 15:26:46 -04:00
Alon Zakai e10ee6c5cb run relooper in -O1, and do not run js opts there 2013-10-09 11:10:07 -04:00
Alon Zakai b5f705842e automatically adjust asm heap size 2013-10-08 17:27:55 -04:00
Alon Zakai c1dd12998f do not run simplifyExpressions in -O1 2013-10-06 10:34:58 -07:00
Alon Zakai e91ceb0778 fix js_opts definition 2013-10-03 10:57:33 -07:00
Alon Zakai d229313b7d if not running js opts, ensure a . in asmEnsureFloat immediately 2013-10-02 17:31:36 -07:00
Alon Zakai bac7ec61d4 run 'last' js optimization phase if asm.js, even if nothing else to run 2013-10-02 17:31:36 -07:00
Alon Zakai 16f79a38c4 error on linkable modules without asm 2013-10-02 16:26:46 -07:00
Alon Zakai c45334e5d3 link in files in autodebugger 2013-10-02 14:44:47 -07:00
Marcos Scriven 20e5ea8498 Debug statement fails when using specific LLVM opts rather than an integer level 2013-09-29 18:41:01 +01:00
Bruce Mitchener e197906fe1 Add iconv from musl. 2013-09-26 09:22:22 +07:00
Alon Zakai e89fc456ed Merge pull request #1670 from waywardmonkeys/add-locale-stuff
Add locale stuff
2013-09-25 19:13:43 -07:00
Bruce Mitchener 894d13a4db Add wprintf, swprintf, vswprintf, vfwprintf, etc. 2013-09-26 06:46:53 +07:00
Bruce Mitchener 7d58080e93 Add a lot of locale code. 2013-09-26 06:46:48 +07:00
Alon Zakai c2473a658d Merge pull request #1653 from juj/fix_ar_handling
Fix ar handling
2013-09-25 10:09:02 -07:00
Jukka Jylänki 794624d295 Do not get confused by Apple GCC dylib special '-compatibility_version' and '-current_version' directives when scanning for input files. Fixes test_the_bullet on OSX after the previous commit. 2013-09-25 08:59:27 +03:00
Alon Zakai 46aac5343e comment about LTO stability 2013-09-23 16:03:01 -07:00
Jukka Jylänki 04a0b8500d Fix emcc to properly treat input filenames with Unix-style version information at the end, e.g. 'libz.so.1.2.8'. Do not assume in the source -> LLVM bitcode compilation pass that all untested file suffixes would be assembly files. Related to #1648. 2013-09-23 15:20:30 +03:00
Jukka Jylänki d3e5647bd4 Make input file parsing in 'emcc' tool stricter. Don't silently fail if a file is missing or is a bitcode file if an archive file was expected, but issue an error and abort. Related to #1648. 2013-09-23 15:20:29 +03:00
Alon Zakai 73579052da refactor memory initializer code to use run dependencies 2013-09-13 16:15:15 -07:00
Alon Zakai 08af46501f Merge pull request #1615 from waywardmonkeys/fix-preprocessor-usage
Fix using emcc -E.
2013-09-13 10:37:22 -07:00
Bruce Mitchener 5404c47c1e Fix using emcc -E.
We don't want to pass this extra flag to emcc as it breaks when
doing EMCONFIGURE_JS=1 emconfigure ./configure ...
2013-09-13 13:37:20 +07:00
Bruce Mitchener 93e1119b3f Typo fix. 2013-09-13 11:07:18 +07:00
Alon Zakai 6c4d3fff3e add space to emcc debug output 2013-09-10 16:43:47 -07:00
Alon Zakai deacea7d36 initial setup for proxying: add option and generate separate html and js 2013-09-08 14:42:36 -07:00
Alon Zakai ce8acc241a dlopen+exceptions+asm is not supported yet 2013-09-04 17:28:08 -07:00
Alon Zakai 851ef39b19 handle the case of EXPORTED_FUNCTIONS=@ 2013-09-03 14:41:31 -07:00
Alon Zakai 8fffbc9202 always keep malloc and free alive and exported, for internal use and other modules 2013-09-03 14:41:31 -07:00
Alon Zakai 822f067c66 support -E in emcc 2013-09-03 14:41:31 -07:00
Alon Zakai aa77d85a53 remove unneeded settings from DLOPEN_SUPPORT 2013-09-03 14:41:31 -07:00
Alon Zakai d6e21d7851 do not require LINKABLE in DLOPEN_SUPPORT 2013-09-03 14:41:30 -07:00
Alon Zakai bfecccd0b3 use addFunction in dlsym, and define F_BASE in side modules so they can run as shared libs 2013-09-03 14:41:29 -07:00
Alon Zakai 4ec2669008 disable ALIASING_FUNCTION_POINTERS for DLOPEN_SUPPORT 2013-09-03 14:41:29 -07:00
Alon Zakai e3a06c12b1 emit memory init files when closure is run, fixes #1547 2013-08-24 19:59:16 -07:00
Alon Zakai ab506b38db only outline in asm.js mode, where it is supported 2013-08-21 15:13:43 -07:00
Alon Zakai a0bcc754be disable optimizeShifts; fixes #1518 2013-08-14 20:49:50 -07:00
Alon Zakai 139c7755ed update emcc comment 2013-08-14 17:26:09 -07:00
Alon Zakai b2c5250d4f --js-opts option to turn off js optimizer 2013-08-09 13:16:44 -07:00
Alon Zakai 8743d1ff48 Merge pull request #1473 from juj/wno-warn-absolute-paths
Wno warn absolute paths
2013-08-08 14:46:45 -07:00
Jukka Jylänki a1ff714e1a Document -Wno-warn-absolute-paths for emcc --help. 2013-08-08 10:07:25 +03:00
Bruce Mitchener 8d4e0cad02 Add fcvt, ecvt, gcvt functions. 2013-08-07 22:25:18 +07:00
Jukka Jylänki c762495c91 Add -Wno-warn-absolute-paths cmdline option to allow hiding the absolute -I/-L path warning for codebases that understand they are crosscompiling and aren't referring to native system headers. 2013-08-07 17:49:17 +03:00
Alon Zakai 61d8808b53 properly deprecate all arguments to --minify except for 0 2013-08-02 10:49:01 -07:00
Alon Zakai 767b7f7052 add default extra arguments to beginning of commandline arguments, so that users can override them (not recommended though) 2013-08-02 10:28:54 -07:00
Alon Zakai 8dd0ed8704 only emit -nostdinc++ when calling clang to build a file ending in a cpp-style suffix 2013-08-01 10:20:25 -07:00
Alon Zakai 9854bb1c7b support for stb-image 2013-07-31 11:14:04 -07:00
Alon Zakai 55626711df disable asm in embind mode, and add a test for what embind cannot do in asm mode yet; issue #1447 2013-07-30 15:53:47 -07:00
Alon Zakai 3fba5dbf44 link to file packaging docs 2013-07-24 13:53:37 -07:00
Alon Zakai 79cf7e8259 allow closure with -g1 (only preserve whitespace) 2013-07-22 09:34:59 -07:00
Alon Zakai 646e5af888 consolidate simplifyExpressions to one pass that happens before closure, where simplifyNotComps is guaranteed to be valid 2013-07-17 20:58:16 -07:00
Alon Zakai 3a1a48bb74 outlining integration in compiler 2013-07-17 16:47:47 -07:00
Alon Zakai bb8442890f infrastructure for passing extra info to js optimizer passes from emcc 2013-07-17 15:44:41 -07:00
Jez Ng 61c31f6935 Use DLOPEN_SUPPORT instead of LINKABLE to enable self-dlopen.
Also address style feedback.
2013-07-15 14:36:28 -07:00
Jez Ng 2af851e905 Remove semicolons from Python code. 2013-07-08 17:26:14 -07:00
Jez Ng 2d6e550950 Use implicit range in for loops where possible. 2013-07-08 16:03:55 -07:00
Alon Zakai 6ad418da82 force-include .a contents of multiple archives when they are the only inputs aside from linked libraries 2013-07-03 16:57:44 -07:00
Alon Zakai e6c426b74b force-include .a contents when it is the only input aside from linked libraries 2013-07-03 16:18:29 -07:00
Alon Zakai 4a907afae0 always do globaldce (and potentially strip-debug), even when we are building something linkable 2013-07-03 15:31:05 -07:00
Alon Zakai 5b27fcf208 allow picking a library to force inclusion of in EMCC_FORCE_STDLIBS 2013-07-03 15:31:04 -07:00
Alon Zakai 650a1d7857 finalize floats during relocation in side modules 2013-07-03 15:31:04 -07:00
Alon Zakai 5e360b75ff fix non-linking of C libs in side modules 2013-07-03 15:31:04 -07:00
Alon Zakai 7be8c34546 do not link in C libraries in side modules 2013-07-03 15:31:04 -07:00
Alon Zakai 8c72d67953 move memory initializer pattern to shared 2013-07-03 15:31:03 -07:00
Alon Zakai 74e60024e3 cleanups 2013-07-03 15:31:03 -07:00
Alon Zakai fac77c3ff0 initial setup 2013-07-03 15:31:02 -07:00
Alon Zakai d887e70b10 improve error message 2013-06-28 11:28:48 -07:00
Alon Zakai 0432f1c791 add option for -O3 style LTO without normal LLVM LTO, because java-nbody hits an LTO bug but benefits from -O3 on all the code 2013-06-27 12:05:53 -07:00
Alon Zakai 681ab3e915 always use lto in embind, workaround for a pointer issue 2013-06-27 11:26:46 -07:00
Alon Zakai 6fe62c1539 --llvm-lto 2 option 2013-06-27 11:03:22 -07:00
Alon Zakai 317f89f548 fix bug when optimizing renamed input files in emcc 2013-06-26 21:11:49 -07:00
Alon Zakai 1acf958b45 optimize libc and other libraries with -O2 2013-06-26 18:55:28 -07:00
Alon Zakai 7e179d8c63 make EMCC_OPTIMIZE_NORMALLY the default 2013-06-26 13:58:30 -07:00
Alon Zakai dc341c89d3 deprecate llvm opts in non-ta2 modes 2013-06-26 13:51:59 -07:00
Alon Zakai deacdfa129 remove incorrect comment 2013-06-26 11:47:20 -07:00
Alon Zakai 501022cbaa Merge branch 'source-maps' of github.com:int3/emscripten into int3-source-maps
Conflicts:
	tools/js-optimizer.js
2013-06-26 10:53:17 -07:00
Alon Zakai e7dfdb3a27 make emcc -v update debug settings, so that it saves temp files 2013-06-24 21:27:31 -07:00
Jez Ng 6768d77c41 Clean up emcc flag parsing + help message. 2013-06-24 15:57:57 -07:00
Alon Zakai bab35f453a unify registerize and minify passes, since they must run in conjunction 2013-06-24 13:24:30 -07:00
Alon Zakai 637ad69e97 add space in debug output 2013-06-24 10:56:08 -07:00
Jez Ng 7ff0dde780 Merge remote-tracking branch 'upstream/incoming' into source-maps
Conflicts:
	emcc
	tools/js-optimizer.js
	tools/js_optimizer.py
2013-06-22 23:46:31 -07:00
Alon Zakai 61b60b7f13 only minify globals when relooping 2013-06-22 15:32:03 -07:00
Alon Zakai 202461abe3 fix -g2 and add testing 2013-06-22 15:02:10 -07:00
Alon Zakai 369167ebda -gLEVEL ; support varying degrees of debuggability 2013-06-22 14:21:19 -07:00
Alon Zakai 8f1a7e5546 show auto-linking decision process only in VERBOSE 2013-06-22 09:42:37 -07:00
Jez Ng 3a84846ded Centralize debug options in a -gX flag. 2013-06-22 05:42:26 -07:00
Jez Ng 9382556ed5 Test that source mapping works with EMCC_DEBUG=2. 2013-06-22 01:23:22 -07:00
Jez Ng 88feddf045 Get test_source_map passing again. 2013-06-22 01:23:22 -07:00
Jez Ng 99fa57e08e Make test_debug actually fail when things go wrong. 2013-06-22 01:23:21 -07:00
Jez Ng cfe4eb5b4f Source maps should only be activated via the `--map` flag. 2013-06-22 01:23:14 -07:00
Alon Zakai 4654f7b59b todo 2013-06-21 11:22:51 -07:00
Jez Ng d680f5e81b Implement source maps for optimized builds. 2013-06-19 14:15:18 -07:00
Jez Ng 54a59bee84 Move source mapping files into their own folder. 2013-06-19 14:15:18 -07:00
Jez Ng 7656f94838 Lay the groundwork for optimized source maps. 2013-06-19 14:09:13 -07:00
Jez Ng af52a9aacb Fix source map line numbering for inline scripts. 2013-06-19 01:22:01 -07:00
Jez Ng 2f16717540 Add test for source maps.
Tweak behavior of post_build; the `post2` hook now expects a function.
2013-06-19 01:22:01 -07:00
Jez Ng 165befaa29 Add check for keep_llvm_debug + minor touchups. 2013-06-19 01:22:01 -07:00
Jez Ng 747f74e105 Implement basic source maps. Closes #1252. 2013-06-19 01:22:01 -07:00
Alon Zakai e8b1ec27a7 Merge pull request #1281 from juj/noninput_cmdline_opts
Improve emcc input file detection to ignore all arguments that precede a...
2013-06-17 17:08:57 -07:00
Alon Zakai 02382e49cb Merge pull request #1280 from juj/abs_path_check
Improve absolute path warning detection to work on Windows, and make the...
2013-06-17 17:06:49 -07:00