summaryrefslogtreecommitdiff
path: root/src/support
Commit message (Collapse)AuthorAgeFilesLines
* Move rol/ror to src/support/bits.hDerek Schuff2016-03-091-0/+15
|
* move printing to a passAlon Zakai2016-02-171-0/+4
|
* De-inline signed wrapper templates for bit manipulation functionsDerek Schuff2016-02-031-3/+3
| | | | This fixes the clang build.
* fix gcc 4.8.2 breakage due to 66da1ee9cc70e3848c45745c21a244e54512fa9cAlon Zakai2016-02-031-9/+13
|
* Move bits.h to support/JF Bastien2016-02-032-0/+168
| | | | Faster compiles.
* Factor out bit_cast.JF Bastien2016-01-281-0/+40
|
* Fix colors on OSX.Michael2016-01-261-1/+1
| | | | Apple OSes define __APPLE__ instead of the lower case __apple__.
* Fix command-line help when there's only long or shortJF Bastien2016-01-201-2/+4
|
* Merge pull request #93 from WebAssembly/asm2wasm-use-command-lineAlon Zakai2016-01-114-13/+34
|\ | | | | asm2wasm: use support's command-line
| * asm2wasm: use support's command-lineJF Bastien2016-01-114-13/+34
| |
* | Safe integer: assert before converting double to integer.JF Bastien2016-01-101-0/+5
| |
* | Add Travis builds with sanitizersJF Bastien2016-01-102-0/+104
|/ | | | | | | | | | | | | | | | This triggers 5 independent build / test runs: - clang, no sanitizer; - clang, UB sanitizer; - clang, address sanitizer (disabled for now); - clang, thread sanitizer (disabled for now); - GCC. Enabling UBSan led to these changes: - Fix a bunch of undefined behavior throughout the code base. - Fix some tests that relied on that undefined behavior. - Make some of the tests easier to debug by printing their command line. - Add ubsan blacklist to work around libstdc++ bug. - Example testcase also needs sanitizer because libsupport.a uses it.
* Merge pull request #64 from WebAssembly/color-disableAlon Zakai2016-01-042-4/+9
|\ | | | | Disable colors when outputting to a file
| * Disable colors when outputting to a fileJF Bastien2016-01-042-4/+9
| | | | | | | | This will allow other tools to consume the output.
* | Move file input / output to support.JF Bastien2016-01-042-0/+102
|/
* Fix off-by-one in option parsing with '='.JF Bastien2016-01-041-1/+1
|
* Add curlies.JF Bastien2016-01-041-2/+4
|
* Generalize command-line parsing more.JF Bastien2016-01-022-48/+148
| | | | This should allow other programs to use the same command-line support.
* Merge pull request #55 from WebAssembly/support-command-lineAlon Zakai2015-12-302-0/+108
|\ | | | | Start moving command-line processing to libsupport.a
| * Add a help to avoid out-of-bounds.JF Bastien2015-12-291-1/+4
| |
| * Fix include guards.JF Bastien2015-12-291-3/+3
| |
| * Start moving command-line processing to libsupport.aJF Bastien2015-12-292-0/+105
| | | | | | | | This only moves things, no functional change yet.
* | Fix include guardsJF Bastien2015-12-291-3/+3
|/
* Add a support static libraryJF Bastien2015-12-242-0/+72
For now I've only moved the color check (and made it check the environment only once, note function local static initialization is thread-safe in C++11). This will make the builds slightly faster and allow us to move platform-specific code out of header files (reducing the amount of #include gunk). I'll eventually move other parts of the code to support, especially the command-line parsing (once it's reusable).