Support for compiling until assembler, before invoking the linker (eg. gcc -c).
Basic support for displaying relocation informations.
Currently only used in c/c++/d and may/will propagate to other compilers later.
fixes#3222
Signed-off-by: Marc Poulhiès <dkm@kataplop.net>
* Handle zero-sized files
It appears that having a zero-sized file won't call our `next()` handler which means we wedge forever and eventually time out.
This is a workaround. Upstream issue filed as https://github.com/mafintosh/tar-stream/issues/145
* Tsify rison.js
* Turn eslint back on
* Improve typing, cleanup code
* Matt comments
* Prettier-ignore a type declaration
* A couple small type tweaks
* await for conan downloads
* await later
This fixes#4512 - essentially any exceptions thrown before the `await` of the build environment would leave a "task" that was trying to write to the temp dir. the temp dir would then be deleted, and the untar would fail, and as nobody was await-ing its return (as the awaits used to be _after_ the throwing code) then we'd get an uncaught exception.
- latest sentry, tar-stream, which, some yamljs versions
- latest eslint-* stuff
- latest webpack manifest
- Applies all the automatic fixes for newer lint rules
- Bump the webpack version
applies new tslint stuff
* Fix#4469
Errors now look like:
```
Internal Compiler Explorer error: Error: Internal error running asm parser:
./dump-and-parse.sh: line 4: /usr/local/bin/asm-parser: No such file or directory
at CEAsmParser.parseAsmExecResult (/home/matthew/dev/ce/compiler-explorer/lib/external-parsers/base.ts:77:19)
at CEAsmParser.objdumpAndParseAssembly (/home/matthew/dev/ce/compiler-explorer/lib/external-parsers/base.ts:101:21)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async DefaultCompiler.objdump (/home/matthew/dev/ce/compiler-explorer/lib/base-compiler.ts:414:31)
at async Promise.all (index 0)
at async DefaultCompiler.checkOutputFileAndDoPostProcess (/home/matthew/dev/ce/compiler-explorer/lib/base-compiler.ts:1356:16)
at async /home/matthew/dev/ce/compiler-explorer/lib/base-compiler.ts:2236:41
at async run (/home/matthew/dev/ce/compiler-explorer/node_modules/p-queue/dist/index.js:163:29)
Compiler returned: -1
```
which at least gives context on why the parsing failed. And per discussion with @partouf we'll blow up at construction time if the file isn't there, which means the above is more to cover "what if the tool dies".
* Separate shareable tool type from server ITool
I realised we were using the "Tool" on both client and server, but the client only has the JSON-able data of Tool, not the interface/object Tool (now renamed to `ITool`).
* Fix tests
* Add assert and unwrap utilities
* Playing around with diagnostics
* lib/assert diagnostic implementation
* Remove temporary testing stuff
* Reset package-lock.json to before I messed with it
* Further refinements and integration
* Added licence and removed an obsolete eslint directive
* TS-ify logger
Also redoes some pretty nasty morgan workarounds in favour of an actual real stream.
* Fix tests. and actually write some
* Formatting
* Add clarifying comment
* Don't try and hack the compilation results
Carbon tried to synthesize "having run" by overriding and hacking a result routine...but did so _after_ it had been cached. So cached results were broken, but live results not.
This "fixes" by adding a post-compilation, but pre-cache hook and uses that instead. Naming is terrible.
I also took the time to fix the `CompilationResult`'s `buildResult`
Closes#4426
* Converted amd64 docs to ts
* 6502
* 6502 part 2
* arm
* avr
* evm
* java
* llvm
* python
* Fix bug with only getting the first paragraph
* Updated help messages