Commit graph

8 commits

Author SHA1 Message Date
Fabian 27e83d6b0e support rust installed without rustup 2022-09-14 00:32:19 +09:00
ParkerTomatoes b11c54cd5a detect host triplet when finding rust-lld 2021-05-04 17:26:05 -05:00
Mikhail B 3791d63ffd workaround to support i686 + clang 5.0+
clang version 5.0.0 (http://root.cern.ch/git/clang.git 354b25b5d915ff3b1946479ad07f3f2768ea1621) (http://root.cern.ch/git/llvm.git 9c749361ba8c2d400b83d8cc5c544287465b7489)
Target: i686-pc-linux-gnu
Thread model: posix

rustup 1.23.1 (3df2264a9 2020-11-30)

rustc 1.53.0-nightly (d0695c908 2021-04-12)
2021-04-13 09:47:17 -05:00
Fabian 17cca458fa Print stdout/stderr before failing 2020-12-31 19:14:29 -06:00
Fabian 2ee68c960a Make --strip-debug configurable (for release builds) 2020-08-30 19:29:54 -05:00
Amaan Cheval 80e339d54c rust-lld-wrapper: Remove export-table to prevent conflict
Without this patch, the following error is thrown:
  rust-lld: error: --import-table and --export-table may not be used together

Tested on the following nightly versions:

rustc 1.30.0-nightly (7e8ca9f8b 2018-08-03)
rustc 1.30.0-nightly (33b923fd4 2018-08-18)
2020-08-30 19:29:54 -05:00
Fabian e8eb5b9b45 Restore debug info 2020-08-30 19:29:53 -05:00
Fabian 01061dc4b6 The final Rust porting
This commit contains the final changes requires for porting all C code
to Rust and from emscripten to llvm:

- tools/wasm-patch-indirect-function-table.js: A script that rewrites
  the wasm generated by llvm to remove the table limit
- tools/rust-lld-wrapper: A wrapper around rust-lld that removes
  arguments forced by rustc that break compilation for us
- src/rust/cpu2/Makefile: A monstrosity to postprocess c2rust's output
- gen/generate_interpreter.js: Ported to produce Rust instead of C
- src/rust/*: A few functions and macros to connect the old Rust code
  and the new Rust code
- src/*.js: Removes the loading of the old emscripten wasm module and
  adapts imports and exports from emscripten to llvm
2020-08-30 19:29:53 -05:00