summaryrefslogtreecommitdiff
path: root/src/support/file.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Convert to using DEBUG macros (#2497)Sam Clegg2019-12-041-23/+14
| | | | | | This means that debugging/tracing can now be enabled and controlled centrally without managing and passing state around the codebase.
* Support response files, and use that in Asyncify (#2319)Alon Zakai2019-08-301-0/+8
| | | See emscripten-core/emscripten#9206, the asyncify names can need complex escaping, so this provides an escape hatch.
* clang-tidy braces changes (#2075)Alon Zakai2019-05-011-6/+12
| | | Applies the changes in #2065, and temprarily disables the hook since it's too slow to run on a change this large. We should re-enable it in a later commit.
* Apply format changes from #2048 (#2059)Alon Zakai2019-04-261-33/+50
| | | Mass change to apply clang-format to everything. We are applying this in a PR by me so the (git) blame is all mine ;) but @aheejin did all the work to get clang-format set up and all the manual work to tidy up some things to make the output nicer in #2048
* Move features from passOptions to Module (#2001)Thomas Lively2019-04-121-0/+3
| | | | | This allows us to emit a (potentially modified) target features section and conditionally emit other sections such as the DataCount section based on the presence of features.
* Allow tools to read from stdin (#1950)Thomas Lively2019-03-181-1/+11
| | | | This is necessary to write tests that don't require temporary files, such as in #1948, and is generally useful.
* standardize on 'template<' over 'template <' (i.e., remove a space) (#1782)Alon Zakai2018-11-291-1/+1
|
* 'std::string &' => 'std::string& ' (#1403)Alon Zakai2018-02-051-4/+4
| | | The & on the type is the proper convention.
* wasm-reduce tool (#1139)Alon Zakai2017-09-011-0/+12
| | | Reduce an interesting wasm to a smaller still interesting wasm. This takes an arbitrary command to run, and reduces the wasm as much as it can while keeping the behavior of that command fixed. This can be used to reduce compiler bugs in an arbitrary VM, etc.
* Fix wasm::read_file() to read correctly sized input strings in text mode. ↵juj2017-07-181-0/+6
| | | | (#1088)
* Wrap description (#839)Loo Rong Jie2016-11-281-0/+1
|
* add support for symbol assignments, closes #4422 (#615)Dominic Chen2016-07-111-1/+1
| | | Adds support for aliases to objects, to go along with the existing support for aliases to functions.
* Build fixes/workarounds to support Visual Studio 2013 build, which has ↵juj2016-06-211-0/+1
| | | | trouble with some new C++11 constructs. (#581)
* Changed type of flags to fix Visual Studio 2015 error (#418)BSalita2016-04-301-1/+1
| | | Changed type of flags (line 26) in read_file() from auto to std::ios_base::openmode to fix Visual Studio 2015 error.
* fix file size for binary files readAlon Zakai2016-04-211-1/+1
|
* refactor file flags into enumsAlon Zakai2016-03-311-8/+8
|
* set the binary bit on files we need to open in binary modeAlon Zakai2016-03-311-7/+12
|
* Repair broken file-size checkpjuftring2016-03-311-1/+1
|
* streampos may be signed on some platformsAlon Zakai2016-03-281-2/+2
|
* Use std::numeric_limits<uint32_t>::max() instead of 0xFFFFFFFF.Jukka Jylänki2016-03-281-2/+3
|
* Fix wasm::read_file() to abort if input file is too big to read in when ↵Jukka Jylänki2016-03-281-2/+7
| | | | building a 32-bit executable and size_t is not 64-bit.
* asm2wasm: use support's command-lineJF Bastien2016-01-111-2/+7
|
* Move file input / output to support.JF Bastien2016-01-041-0/+51